Chandler Carruth | 664aa86 | 2018-09-04 12:38:00 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -mspeculative-load-hardening -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s -check-prefix=SLH |
2 | // | ||||
3 | // Check that we set the attribute on each function. | ||||
4 | |||||
5 | int test1() { | ||||
6 | return 42; | ||||
7 | } | ||||
8 | // SLH: @{{.*}}test1{{.*}}[[SLH:#[0-9]+]] | ||||
9 | |||||
10 | // SLH: attributes [[SLH]] = { {{.*}}speculative_load_hardening{{.*}} } |