You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
362 B
14 lines
362 B
4 months ago
|
// RUN: %clang_cc1 -O1 -triple x86_64-none-linux-gnu -emit-llvm -debug-info-kind=line-tables-only %s -o - | FileCheck %s
|
||
|
|
||
|
// Inserting lifetime markers should not affect debuginfo
|
||
|
|
||
|
extern int x;
|
||
|
|
||
|
// CHECK-LABEL: define i32 @f
|
||
|
int f() {
|
||
|
int *p = &x;
|
||
|
// CHECK: ret i32 %{{.*}}, !dbg [[DI:![0-9]*]]
|
||
|
// CHECK: [[DI]] = !DILocation(line: [[@LINE+1]]
|
||
|
return *p;
|
||
|
}
|