Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGen / attr-warning.c
blob5c89066aff75a7a3ee926768a9ec68f60502dfb0
1 // RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
2 __attribute__((warning("oh no"))) void foo(void);
4 void bar(void) {
5 foo();
8 // CHECK: call void @foo(), !srcloc [[SRCLOC:![0-9]+]]
9 // CHECK: declare{{.*}} void @foo() [[ATTR:#[0-9]+]]
10 // CHECK: attributes [[ATTR]] = {{{.*}}"dontcall-warn"="oh no"
11 // CHECK: [[SRCLOC]] = !{i32 {{[0-9]+}}}