blob: 3bc743f286c7342c900af53b0269d3816ce531a9 [file] [log] [blame]
// RUN: %clang -E -mspeculative-load-hardening %s -o - | FileCheck --check-prefix=CHECK-SLH %s
// RUN: %clang -E -mno-speculative-load-hardening %s -o - | FileCheck --check-prefix=CHECK-NOSLH %s
// RUN: %clang -E %s -o - | FileCheck --check-prefix=CHECK-DEFAULT %s
#if __has_feature(speculative_load_hardening)
int SpeculativeLoadHardeningEnabled();
#else
int SpeculativeLoadHardeningDisabled();
#endif
// CHECK-SLH: SpeculativeLoadHardeningEnabled
// CHECK-NOSLH: SpeculativeLoadHardeningDisabled
// CHECK-DEFAULT: SpeculativeLoadHardeningDisabled