blob: e2e45cb7f8161973132a1093470287d9da406316 [file] [log] [blame]
Douglas Katzman3459ce22015-10-08 04:24:12 +00001// RUN: %clang_cc1 -O1 -triple x86_64-none-linux-gnu -emit-llvm -debug-info-kind=line-tables-only %s -o - | FileCheck %s
David Majnemerdc012fa2015-04-22 21:38:15 +00002
3// Inserting lifetime markers should not affect debuginfo
4
5extern int x;
6
7// CHECK-LABEL: define i32 @f
8int f() {
9 int *p = &x;
10// CHECK: ret i32 %{{.*}}, !dbg [[DI:![0-9]*]]
Duncan P. N. Exon Smith9dd4e4e2015-04-29 16:40:08 +000011// CHECK: [[DI]] = !DILocation(line: [[@LINE+1]]
David Majnemerdc012fa2015-04-22 21:38:15 +000012 return *p;
13}