[LLVM][IR] Use splat syntax when printing ConstantExpr based splats. (#116856)
[llvm-project.git] / clang / test / CodeGen / attr-warning.c
blob034ab7869f7697939ed5427d45254e172588dad2
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]] = !{i64 {{[0-9]+}}}