15 lines · c
1// RUN: %clang_cc1 -O1 -triple x86_64-none-linux-gnu -emit-llvm -debug-info-kind=line-tables-only %s -o - | FileCheck %s2// RUN: %clang_cc1 -O1 -triple x86_64-none-linux-gnu -emit-llvm -debug-info-kind=line-directives-only %s -o - | FileCheck %s3 4// Inserting lifetime markers should not affect debuginfo5 6extern int x;7 8// CHECK-LABEL: define{{.*}} i32 @f9int f(void) {10 int *p = &x;11// CHECK: ret i32 %{{.*}}, !dbg [[DI:![0-9]*]]12// CHECK: [[DI]] = !DILocation(line: [[@LINE+1]]13 return *p;14}15