[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / debug-info-typedef.c
blobea3b549e63b498c71e8259e602330bb388e68769
1 // RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -I%p %s -o - | FileCheck %s
2 // Test that the location of the typedef points to the header file.
3 #line 1 "a.c"
4 #line 2 "b.h"
5 typedef int MyType;
6 #line 2 "a.c"
8 MyType a;
10 // CHECK: !DIDerivedType(tag: DW_TAG_typedef, name: "MyType", file: ![[HEADER:[0-9]+]], line: 2,
11 // CHECK: ![[HEADER]] = !DIFile(filename: "b.h",