Add a triple to test/DebugInfo/unconditional-branch.ll (PR23252)
[oota-llvm.git] / test / DebugInfo / X86 / c-type-units.ll
1 ; REQUIRES: object-emission
2
3 ; RUN: llc -o - %s -filetype=obj -O0 -generate-dwarf-pub-sections=Disable -generate-type-units -mtriple=x86_64-unknown-linux-gnu | llvm-dwarfdump -debug-dump=types - | FileCheck %s
4
5 ; struct foo {
6 ; } f;
7
8 ; no known LLVM frontends produce appropriate unique identifiers for C types,
9 ; so we don't produce type units for them
10 ; CHECK-NOT: DW_TAG_type_unit
11
12 %struct.foo = type {}
13
14 @f = common global %struct.foo zeroinitializer, align 1
15
16 !llvm.dbg.cu = !{!0}
17 !llvm.module.flags = !{!7, !8}
18 !llvm.ident = !{!9}
19
20 !0 = !MDCompileUnit(language: DW_LANG_C99, producer: "clang version 3.5 ", isOptimized: false, emissionKind: 0, file: !1, enums: !2, retainedTypes: !2, subprograms: !2, globals: !3, imports: !2)
21 !1 = !MDFile(filename: "simple.c", directory: "/tmp/dbginfo")
22 !2 = !{}
23 !3 = !{!4}
24 !4 = !MDGlobalVariable(name: "f", line: 2, isLocal: false, isDefinition: true, scope: null, file: !5, type: !6, variable: %struct.foo* @f)
25 !5 = !MDFile(filename: "simple.c", directory: "/tmp/dbginfo")
26 !6 = !MDCompositeType(tag: DW_TAG_structure_type, name: "foo", line: 1, align: 8, file: !1, elements: !2)
27 !7 = !{i32 2, !"Dwarf Version", i32 4}
28 !8 = !{i32 1, !"Debug Info Version", i32 3}
29 !9 = !{!"clang version 3.5 "}