blob: 674346a031d2d73fddda70ee7f9d820225b0211f [file] [log] [blame]
David Majnemerdc012fa2015-04-22 21:38:15 +00001// RUN: %clang_cc1 -O1 -triple x86_64-none-linux-gnu -emit-llvm -gline-tables-only %s -o - | FileCheck %s
2
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}