[LLVM][IR] Use splat syntax when printing ConstantExpr based splats. (#116856)
[llvm-project.git] / clang / test / CodeGen / nodebug-attr.c
blobee19a4c5944266c444469677d3e0c85703416d48
1 // RUN: %clang_cc1 -triple x86_64-linux-gnu -emit-llvm %s -O3 \
2 // RUN: -debug-info-kind=limited -o - -debugger-tuning=gdb -dwarf-version=4 \
3 // RUN: | FileCheck %s
5 // Makes sure there is no !dbg between function attributes and '{'.
6 // CHECK-LABEL: define{{.*}} void @foo{{.*}} #{{[0-9]+}} {
7 // CHECK-NOT: ret {{.*}}!dbg
8 __attribute__((nodebug)) void foo(int *a) {
9 *a = 1;
12 // CHECK-LABEL: define {{.*}}@bar{{.*}}!dbg
13 void bar(int *a) {
14 foo(a);