[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Lexer / has_feature_speculative_load_hardening.cpp
blob3bc743f286c7342c900af53b0269d3816ce531a9
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();
7 #else
8 int SpeculativeLoadHardeningDisabled();
9 #endif
11 // CHECK-SLH: SpeculativeLoadHardeningEnabled
13 // CHECK-NOSLH: SpeculativeLoadHardeningDisabled
15 // CHECK-DEFAULT: SpeculativeLoadHardeningDisabled