You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
452 B
15 lines
452 B
// RUN: %clang -emit-llvm %s -o - -S | FileCheck %s -check-prefix=SLH
|
|
|
|
int main() __attribute__((speculative_load_hardening)) {
|
|
return 0;
|
|
}
|
|
|
|
int test() __attribute__((no_speculative_load_hardening)) {
|
|
return 0;
|
|
}
|
|
|
|
// SLH: @{{.*}}main{{.*}}[[SLH:#[0-9]+]]
|
|
// SLH: @{{.*}}test{{.*}}[[NOSLH:#[0-9]+]]
|
|
// SLH: attributes [[SLH]] = { {{.*}}speculative_load_hardening{{.*}} }
|
|
// SLH-NOT: attributes [[NOSLH]] = { {{.*}}speculative_load_hardening{{.*}} }
|