summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/attr-speculative-load-hardening.c
blob: ccbded44bb47064e7eb784497d58b311e2f41684 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %clang_cc1 -mspeculative-load-hardening -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s -check-prefix=SLH
//
// Check that we set the attribute on each function.

int test1() {
  return 42;
}
// SLH: @{{.*}}test1{{.*}}[[SLH:#[0-9]+]]

// SLH: attributes [[SLH]] = { {{.*}}speculative_load_hardening{{.*}} }
OpenPOWER on IntegriCloud