1; RUN: llc -O0 -mtriple=x86_64-apple-darwin %s -o %t -filetype=obj 2; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s 3 4source_filename = "test/DebugInfo/X86/enum-fwd-decl.ll" 5 6@e = global i16 0, align 2, !dbg !0 7 8!llvm.dbg.cu = !{!4} 9!llvm.module.flags = !{!7} 10 11!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression()) 12!1 = !DIGlobalVariable(name: "e", scope: null, file: !2, line: 2, type: !3, isLocal: false, isDefinition: true) 13!2 = !DIFile(filename: "foo.cpp", directory: "/tmp") 14!3 = !DICompositeType(tag: DW_TAG_enumeration_type, name: "E", file: !2, line: 1, size: 16, align: 16, flags: DIFlagFwdDecl) 15!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) 16!5 = !{} 17; CHECK: DW_TAG_enumeration_type 18; CHECK-NEXT: DW_AT_name 19; CHECK-NEXT: DW_AT_byte_size 20; CHECK-NEXT: DW_AT_declaration 21!6 = !{!0} 22!7 = !{i32 1, !"Debug Info Version", i32 3} 23