11cf3338bSEric Christopher; RUN: llc -O0 -mtriple=x86_64-apple-darwin %s -o %t -filetype=obj 2*7bc1b282SAdrian Prantl; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s 31cf3338bSEric Christopher 41eadba1cSAdrian Prantlsource_filename = "test/DebugInfo/X86/enum-fwd-decl.ll" 51cf3338bSEric Christopher 61eadba1cSAdrian Prantl@e = global i16 0, align 2, !dbg !0 71cf3338bSEric Christopher 81eadba1cSAdrian Prantl!llvm.dbg.cu = !{!4} 91eadba1cSAdrian Prantl!llvm.module.flags = !{!7} 101cf3338bSEric Christopher 1105782218SAdrian Prantl!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression()) 121eadba1cSAdrian Prantl!1 = !DIGlobalVariable(name: "e", scope: null, file: !2, line: 2, type: !3, isLocal: false, isDefinition: true) 131eadba1cSAdrian Prantl!2 = !DIFile(filename: "foo.cpp", directory: "/tmp") 141eadba1cSAdrian Prantl!3 = !DICompositeType(tag: DW_TAG_enumeration_type, name: "E", file: !2, line: 1, size: 16, align: 16, flags: DIFlagFwdDecl) 151eadba1cSAdrian Prantl!4 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !2, producer: "clang version 3.2 (trunk 165274) (llvm/trunk 165272)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !5, retainedTypes: !5, globals: !6, imports: !5) 161eadba1cSAdrian Prantl!5 = !{} 171cf3338bSEric Christopher; CHECK: DW_TAG_enumeration_type 181cf3338bSEric Christopher; CHECK-NEXT: DW_AT_name 191cf3338bSEric Christopher; CHECK-NEXT: DW_AT_byte_size 201cf3338bSEric Christopher; CHECK-NEXT: DW_AT_declaration 211eadba1cSAdrian Prantl!6 = !{!0} 221eadba1cSAdrian Prantl!7 = !{i32 1, !"Debug Info Version", i32 3} 23