1 // RUN: %clang -E -mspeculative-load-hardening %s -o - | FileCheck --check-prefix=CHECK-SLH %s
2 // RUN: %clang -E -mno-speculative-load-hardening %s -o - | FileCheck --check-prefix=CHECK-NOSLH %s
3 // RUN: %clang -E %s -o - | FileCheck --check-prefix=CHECK-DEFAULT %s
4 
5 #if __has_feature(speculative_load_hardening)
6 int SpeculativeLoadHardeningEnabled();
7 #else
8 int SpeculativeLoadHardeningDisabled();
9 #endif
10 
11 // CHECK-SLH: SpeculativeLoadHardeningEnabled
12 
13 // CHECK-NOSLH: SpeculativeLoadHardeningDisabled
14 
15 // CHECK-DEFAULT: SpeculativeLoadHardeningDisabled
16