Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenObjC / attr-speculative-load-hardening.m
blobe0a4e6a1ee92b8062778dc66cdb9c4fb90f9a435
1 // RUN: %clang -emit-llvm %s -o - -S | FileCheck %s -check-prefix=SLH
3 int main(void) __attribute__((speculative_load_hardening)) {
4   return 0;
7 int test(void) __attribute__((no_speculative_load_hardening)) {
8   return 0;
11 // SLH: @{{.*}}main{{.*}}[[SLH:#[0-9]+]]
12 // SLH: @{{.*}}test{{.*}}[[NOSLH:#[0-9]+]]
13 // SLH: attributes [[SLH]] = { {{.*}}speculative_load_hardening{{.*}} }
14 // SLH-NOT: attributes [[NOSLH]] = { {{.*}}speculative_load_hardening{{.*}} }