1; RUN: llc < %s -filetype=obj | llvm-readobj - -codeview | FileCheck %s
2
3; Generated from the following C++ source:
4; enum E : int { BLAH };
5; E e;
6
7; CHECK:     CodeViewTypes [
8; CHECK:       FieldList (0x1000) {
9; CHECK-NEXT:    TypeLeafKind: LF_FIELDLIST (0x1203)
10; CHECK-NEXT:    Enumerator {
11; CHECK-NEXT:      AccessSpecifier: Public (0x3)
12; CHECK-NEXT:      EnumValue: 0
13; CHECK-NEXT:      Name: BLAH
14; CHECK-NEXT:    }
15; CHECK-NEXT:  }
16; CHECK-NEXT:  Enum (0x1001) {
17; CHECK-NEXT:    TypeLeafKind: LF_ENUM (0x1507)
18; CHECK-NEXT:    NumEnumerators: 1
19; CHECK-NEXT:    Properties [ (0x0)
20; CHECK-NEXT:    ]
21; CHECK-NEXT:    UnderlyingType: int (0x74)
22; CHECK-NEXT:    FieldListType: <field list> (0x1000)
23; CHECK-NEXT:    Name: E
24; CHECK-NEXT:  }
25
26target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
27target triple = "i686-pc-windows-msvc18.0.0"
28
29@"\01?e@@3W4E@@A" = global i32 0, align 4
30
31!llvm.dbg.cu = !{!0}
32!llvm.module.flags = !{!10, !11}
33!llvm.ident = !{!12}
34
35!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 3.9.0 (trunk 272790) (llvm/trunk 272813)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, globals: !8)
36!1 = !DIFile(filename: "-", directory: "/")
37!2 = !{!3}
38!3 = !DICompositeType(tag: DW_TAG_enumeration_type, name: "E", file: !4, line: 1, baseType: !5, size: 32, align: 32, elements: !6)
39!4 = !DIFile(filename: "<stdin>", directory: "/")
40!5 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
41!6 = !{!7}
42!7 = !DIEnumerator(name: "BLAH", value: 0)
43!8 = !{!9}
44!9 = distinct !DIGlobalVariable(name: "e", linkageName: "\01?e@@3W4E@@A", scope: !0, file: !4, line: 2, type: !3, isLocal: false, isDefinition: true, variable: i32* @"\01?e@@3W4E@@A")
45!10 = !{i32 2, !"CodeView", i32 1}
46!11 = !{i32 2, !"Debug Info Version", i32 3}
47!12 = !{!"clang version 3.9.0 (trunk 272790) (llvm/trunk 272813)"}
48