diff options
Diffstat (limited to 'test/CodeGen/attr-speculative-load-hardening.m')
| -rw-r--r-- | test/CodeGen/attr-speculative-load-hardening.m | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/attr-speculative-load-hardening.m b/test/CodeGen/attr-speculative-load-hardening.m new file mode 100644 index 000000000000..2de945b974fa --- /dev/null +++ b/test/CodeGen/attr-speculative-load-hardening.m @@ -0,0 +1,9 @@ +// RUN: %clang -emit-llvm %s -o - -S | FileCheck %s -check-prefix=SLH + +int main() __attribute__((speculative_load_hardening)) { + return 0; +} + +// SLH: @{{.*}}main{{.*}}[[SLH:#[0-9]+]] + +// SLH: attributes [[SLH]] = { {{.*}}speculative_load_hardening{{.*}} } |
