[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / DebugInfo / PDB / Native / pdb-native-typedefs.test
blob5784fcc37f0fd17a6efc0c8a32be1a27b914c687
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
16 DUMP:      {
17 DUMP-NEXT:   symIndexId: 2
18 DUMP-NEXT:   symTag: Typedef
19 DUMP-NEXT:   name: IntType
20 DUMP-NEXT:   typeId: 3
21 DUMP-NEXT: }
22 DUMP-NEXT: {
23 DUMP-NEXT:   symIndexId: 4
24 DUMP-NEXT:   symTag: Typedef
25 DUMP-NEXT:   name: ClassAType
26 DUMP-NEXT:   typeId: 5
27 DUMP-NEXT: }
28 DUMP-NEXT: {
29 DUMP-NEXT:   symIndexId: 6
30 DUMP-NEXT:   symTag: Typedef
31 DUMP-NEXT:   name: int_array
32 DUMP-NEXT:   typeId: 7
33 DUMP-NEXT: }