brintos

brintos / llvm-project-archived public Read only

0
0
Text · 458 B · ee19a4c Raw
16 lines · c
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 %s4 5// Makes sure there is no !dbg between function attributes and '{'.6// CHECK-LABEL: define{{.*}} void @foo{{.*}} #{{[0-9]+}} {7// CHECK-NOT: ret {{.*}}!dbg8__attribute__((nodebug)) void foo(int *a) {9  *a = 1;10}11 12// CHECK-LABEL: define {{.*}}@bar{{.*}}!dbg13void bar(int *a) {14  foo(a);15}16