1 ; RUN: llvm-readobj --codeview %S/Inputs/codeview-unsorted.obj | FileCheck %s
2 ; RUN: llvm-readobj --codeview-merged-types %S/Inputs/codeview-unsorted.obj | FileCheck %s --check-prefix=MERGED
4 ; The input type stream has records that refer to later type indices in the same
7 ; CHECK: Pointer (0x1000)
8 ; CHECK: Struct (0x1001)
9 ; CHECK: FieldList: {{.*}} (0x1002)
10 ; CHECK: FieldList (0x1002)
11 ; CHECK: Pointer (0x1003)
12 ; CHECK: Procedure (0x1004)
13 ; CHECK: ArgListType: {{.*}} (0x1005)
14 ; CHECK: ArgList (0x1005)
16 ; MERGED: Pointer (0x1000)
17 ; MERGED: FieldList (0x1001)
18 ; MERGED: Struct (0x1002)
19 ; MERGED: FieldList: {{.*}} (0x1001)
20 ; MERGED: Pointer (0x1003)
21 ; MERGED: ArgList (0x1004)
22 ; MERGED: Procedure (0x1005)
23 ; MERGED: ArgListType: {{.*}} (0x1004)
26 ; To reproduce codeview-unsorted.obj:
27 ; $ cat codeview-unsorted.asm
30 ; PBYTE TYPEDEF PTR BYTE
36 ; foo proc dst:ptr foo_list
40 ; $ ml -c -Zi codeview-unsorted.asm