[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGen / lifetime-debuginfo-1.c
blob10b00f15b9ca9a346ee9c797b00d28d4fdcdfc09
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
4 // Inserting lifetime markers should not affect debuginfo
6 extern int x;
8 // CHECK-LABEL: define{{.*}} i32 @f
9 int f(void) {
10 int *p = &x;
11 // CHECK: ret i32 %{{.*}}, !dbg [[DI:![0-9]*]]
12 // CHECK: [[DI]] = !DILocation(line: [[@LINE+1]]
13 return *p;