xref: /llvm-project/llvm/test/tools/llvm-pdbutil/partial-type-stream.test (revision e527986a9c72e0ac5fb69a68bf2a7191bebbb68e)
1; RUN: llvm-pdbutil dump -type-index=0x1019 %p/Inputs/ClassLayoutTest.pdb \
2; RUN:     | FileCheck --check-prefix=NODEPS %s
3; RUN: llvm-pdbutil dump -type-index=0x1019 -dependents -dont-resolve-forward-refs \
4; RUN:     %p/Inputs/ClassLayoutTest.pdb | FileCheck --check-prefix=DEPS %s
5; RUN: llvm-pdbutil dump -type-index=0x3,0x30,0x44,0x74 \
6; RUN:     %p/Inputs/ClassLayoutTest.pdb | FileCheck --check-prefix=SIMPLE %s
7
8
9NODEPS:                          Types (TPI Stream)
10NODEPS-NEXT: ============================================================
11NODEPS-NEXT:   Showing 1 records.
12NODEPS-NEXT:   0x1019 | LF_MFUNCTION [size = 28]
13NODEPS-NEXT:            return type = 0x0003 (void), # args = 0, param list = 0x100E
14NODEPS-NEXT:            class type = 0x1017, this type = 0x1018, this adjust = 0
15NODEPS-NEXT:            calling conv = thiscall, options = None
16
17
18DEPS:                           Types (TPI Stream)
19DEPS-NEXT: ============================================================
20DEPS-NEXT:   Showing 1 records and their dependents (4 records total)
21DEPS-NEXT:   0x100E | LF_ARGLIST [size = 8]
22DEPS-NEXT:   0x1017 | LF_CLASS [size = 60] `MembersTest::A`
23DEPS-NEXT:            unique name: `.?AVA@MembersTest@@`
24DEPS-NEXT:            vtable: <no type>, base list: <no type>, field list: <no type>
25DEPS-NEXT:            options: forward ref | has unique name
26DEPS-NEXT:   0x1018 | LF_POINTER [size = 12]
27DEPS-NEXT:            referent = 0x1017, mode = pointer, opts = const, kind = ptr32
28DEPS-NEXT:   0x1019 | LF_MFUNCTION [size = 28]
29DEPS-NEXT:            return type = 0x0003 (void), # args = 0, param list = 0x100E
30DEPS-NEXT:            class type = 0x1017, this type = 0x1018, this adjust = 0
31DEPS-NEXT:            calling conv = thiscall, options = None
32
33
34SIMPLE:                          Types (TPI Stream)
35SIMPLE-NEXT: ============================================================
36SIMPLE-NEXT:   Showing 4 records.
37SIMPLE-NEXT:   0x0003 (void) | void
38SIMPLE-NEXT:   0x0030 (bool) | bool
39SIMPLE-NEXT:   0x0044 (__float48) | __float48
40SIMPLE-NEXT:   0x0074 (int) | int
41