1*9880d681SAndroid Build Coastguard Workertarget triple = "x86_64-apple-macosx" 2*9880d681SAndroid Build Coastguard Worker; RUN: %llc_dwarf %s -o - -filetype=obj \ 3*9880d681SAndroid Build Coastguard Worker; RUN: | llvm-dwarfdump -debug-dump=info - | FileCheck %s 4*9880d681SAndroid Build Coastguard Worker; CHECK: DW_TAG_module 5*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: NULL 6*9880d681SAndroid Build Coastguard Worker; CHECK: DW_TAG_structure_type 7*9880d681SAndroid Build Coastguard Worker 8*9880d681SAndroid Build Coastguard Worker; Hand-crafted based on 9*9880d681SAndroid Build Coastguard Worker; struct s; 10*9880d681SAndroid Build Coastguard Worker; struct s *s; 11*9880d681SAndroid Build Coastguard Worker 12*9880d681SAndroid Build Coastguard Worker%struct.s = type opaque 13*9880d681SAndroid Build Coastguard Worker 14*9880d681SAndroid Build Coastguard Worker@i = common global %struct.s* null, align 8 15*9880d681SAndroid Build Coastguard Worker 16*9880d681SAndroid Build Coastguard Worker!llvm.dbg.cu = !{!0} 17*9880d681SAndroid Build Coastguard Worker!llvm.module.flags = !{!7, !8} 18*9880d681SAndroid Build Coastguard Worker 19*9880d681SAndroid Build Coastguard Worker!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, globals: !3, imports: !11) 20*9880d681SAndroid Build Coastguard Worker!1 = !DIFile(filename: "test.c", directory: "/") 21*9880d681SAndroid Build Coastguard Worker!2 = !{} 22*9880d681SAndroid Build Coastguard Worker!3 = !{!4} 23*9880d681SAndroid Build Coastguard Worker!4 = !DIGlobalVariable(name: "s", scope: !0, file: !1, line: 2, type: !5, isLocal: false, isDefinition: true, variable: %struct.s** @i) 24*9880d681SAndroid Build Coastguard Worker!5 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !6, size: 64, align: 64) 25*9880d681SAndroid Build Coastguard Worker!6 = !DICompositeType(tag: DW_TAG_structure_type, name: "s", scope: !9, file: !1, line: 1, flags: DIFlagFwdDecl) 26*9880d681SAndroid Build Coastguard Worker!7 = !{i32 2, !"Dwarf Version", i32 2} 27*9880d681SAndroid Build Coastguard Worker!8 = !{i32 2, !"Debug Info Version", i32 3} 28*9880d681SAndroid Build Coastguard Worker!9 = !DIModule(scope: null, name: "Module", configMacros: "", includePath: ".", isysroot: "/") 29*9880d681SAndroid Build Coastguard Worker!10 = !DIImportedEntity(tag: DW_TAG_imported_declaration, scope: !0, entity: !9, line: 11) 30*9880d681SAndroid Build Coastguard Worker!11 = !{!10} 31