2020-05-15 11:09:30 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-linux-gnu -emit-llvm %s -O3 \
|
|
|
|
// RUN: -debug-info-kind=limited -o - -debugger-tuning=gdb -dwarf-version=4 \
|
|
|
|
// RUN: | FileCheck %s
|
|
|
|
|
|
|
|
// Makes sure there is no !dbg between function attributes and '{'.
|
2020-12-31 16:27:11 +08:00
|
|
|
// CHECK-LABEL: define{{.*}} void @foo{{.*}} #{{[0-9]+}} {
|
2020-05-15 11:09:30 +08:00
|
|
|
// CHECK-NOT: ret {{.*}}!dbg
|
|
|
|
__attribute__((nodebug)) void foo(int *a) {
|
|
|
|
*a = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
// CHECK-LABEL: define {{.*}}@bar{{.*}}!dbg
|
|
|
|
void bar(int *a) {
|
|
|
|
foo(a);
|
|
|
|
}
|