[Alignment][NFC] Instructions::getLoadStoreAlignment
[llvm-complete.git] / test / DebugInfo / PDB / pdbdump-merge-ids-and-types.test
blobdd4c072fe0c94881bd4f57fd9530a99769dd96fa
1 ; RUN: llvm-pdbutil yaml2pdb -pdb=%t.1.pdb %p/Inputs/merge-ids-and-types-1.yaml
2 ; RUN: llvm-pdbutil yaml2pdb -pdb=%t.2.pdb %p/Inputs/merge-ids-and-types-2.yaml
3 ; RUN: llvm-pdbutil merge -pdb=%t.3.pdb %t.1.pdb %t.2.pdb
4 ; RUN: llvm-pdbutil dump -types %t.3.pdb | FileCheck -check-prefix=TPI-TYPES %s
5 ; RUN: llvm-pdbutil dump -ids %t.3.pdb | FileCheck -check-prefix=IPI-TYPES %s
7 TPI-TYPES:                          Types (TPI Stream)
8 TPI-TYPES-NEXT: ============================================================
9 TPI-TYPES-NEXT:   Showing 9 records
10 TPI-TYPES-NEXT:   0x1000 | LF_POINTER [size = 12]
11 TPI-TYPES-NEXT:            referent = 0x0470 (char*), mode = pointer, opts = None, kind = ptr32
12 TPI-TYPES-NEXT:   0x1001 | LF_FIELDLIST [size = 24]
13 TPI-TYPES-NEXT:            - LF_MEMBER [name = `FooMember`, Type = 0x0403 (void*), offset = 0, attrs = public]
14 TPI-TYPES-NEXT:   0x1002 | LF_ARGLIST [size = 16]
15 TPI-TYPES-NEXT:            0x0074 (int): `int`
16 TPI-TYPES-NEXT:            0x1000: `char**`
17 TPI-TYPES-NEXT:   0x1003 | LF_STRUCTURE [size = 36] `FooBar`
18 TPI-TYPES-NEXT:            unique name: `FooBar`
19 TPI-TYPES-NEXT:            vtable: <no type>, base list: <no type>, field list: 0x1001
20 TPI-TYPES-NEXT:            options: has unique name
21 TPI-TYPES-NEXT:   0x1004 | LF_POINTER [size = 12]
22 TPI-TYPES-NEXT:            referent = 0x1003, mode = pointer, opts = None, kind = ptr32
23 TPI-TYPES-NEXT:   0x1005 | LF_ARGLIST [size = 12]
24 TPI-TYPES-NEXT:            0x0074 (int): `int`
25 TPI-TYPES-NEXT:   0x1006 | LF_MFUNCTION [size = 28]
26 TPI-TYPES-NEXT:            return type = 0x0003 (void), # args = 1, param list = 0x1005
27 TPI-TYPES-NEXT:            class type = 0x1003, this type = 0x1004, this adjust = 0
28 TPI-TYPES-NEXT:            calling conv = thiscall, options = constructor
29 TPI-TYPES-NEXT:   0x1007 | LF_PROCEDURE [size = 16]
30 TPI-TYPES-NEXT:            return type = 0x0074 (int), # args = 2, param list = 0x1002
31 TPI-TYPES-NEXT:            calling conv = cdecl, options = None
32 TPI-TYPES-NEXT:   0x1008 | LF_PROCEDURE [size = 16]
33 TPI-TYPES-NEXT:            return type = 0x0003 (void), # args = 2, param list = 0x1002
34 TPI-TYPES-NEXT:            calling conv = cdecl, options = None
36 IPI-TYPES:                          Types (IPI Stream)
37 IPI-TYPES-NEXT: ============================================================
38 IPI-TYPES-NEXT:   Showing 6 records
39 IPI-TYPES-NEXT:   0x1000 | LF_FUNC_ID [size = 20]
40 IPI-TYPES-NEXT:            name = main, type = 0x1007, parent scope = <no type>
41 IPI-TYPES-NEXT:   0x1001 | LF_MFUNC_ID [size = 24]
42 IPI-TYPES-NEXT:            name = FooMethod, type = 0x1006, class type = 0x1003
43 IPI-TYPES-NEXT:   0x1002 | LF_UDT_MOD_SRC_LINE [size = 20]
44 IPI-TYPES-NEXT:            udt = 0x1003, mod = 0, file = 0, line = 0
45 IPI-TYPES-NEXT:   0x1003 | LF_FUNC_ID [size = 20]
46 IPI-TYPES-NEXT:            name = main2, type = 0x1007, parent scope = <no type>
47 IPI-TYPES-NEXT:   0x1004 | LF_FUNC_ID [size = 16]
48 IPI-TYPES-NEXT:            name = foo, type = 0x1008, parent scope = <no type>
49 IPI-TYPES-NEXT:   0x1005 | LF_MFUNC_ID [size = 24]
50 IPI-TYPES-NEXT:            name = FooMethod2, type = 0x1006, class type = 0x1003