summaryrefslogtreecommitdiff
path: root/test/CodeGen/attr-speculative-load-hardening.m
blob: 2de945b974fafcb9af79e777c8ed13d4f73b1a7b (plain)
1
2
3
4
5
6
7
8
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{{.*}} }