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
5 #if __has_feature(speculative_load_hardening)
6 int SpeculativeLoadHardeningEnabled();
8 int SpeculativeLoadHardeningDisabled();
11 // CHECK-SLH: SpeculativeLoadHardeningEnabled
13 // CHECK-NOSLH: SpeculativeLoadHardeningDisabled
15 // CHECK-DEFAULT: SpeculativeLoadHardeningDisabled