1 ; Test that the native PDB reader can enumerate typedefs. The output being
2 ; checked against is golden output generated by llvm-pdbutil without the
3 ; -native flag. Then we check that we generate the same output.
5 ; RUN: llvm-pdbutil pretty -native -typedefs %p/../Inputs/symbolformat.pdb \
6 ; RUN: | FileCheck -check-prefix=PRETTY %s
8 ; RUN: llvm-pdbutil diadump -native -typedefs %p/../Inputs/symbolformat.pdb \
9 ; RUN: | FileCheck -check-prefix=DUMP %s
11 PRETTY: Typedefs: (3 items)
12 PRETTY-NEXT: typedef int IntType
13 PRETTY-NEXT: typedef class A ClassAType
14 PRETTY-NEXT: typedef int[3] int_array
17 DUMP-NEXT: symIndexId: 2
18 DUMP-NEXT: symTag: Typedef
19 DUMP-NEXT: name: IntType
23 DUMP-NEXT: symIndexId: 4
24 DUMP-NEXT: symTag: Typedef
25 DUMP-NEXT: name: ClassAType
29 DUMP-NEXT: symIndexId: 6
30 DUMP-NEXT: symTag: Typedef
31 DUMP-NEXT: name: int_array