Home | History | Annotate | Download | only in CodeGen
      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"
      7 
      8 MyType a;
      9 
     10 // CHECK: !DIDerivedType(tag: DW_TAG_typedef, name: "MyType", file: ![[HEADER:[0-9]+]], line: 2,
     11 // CHECK: ![[HEADER]] = !DIFile(filename: "b.h",
     12