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