1; RUN: llvm-pdbutil pretty -all -class-recurse-depth=1 \ 2; RUN: %p/Inputs/ClassLayoutTest.pdb > %t 3; RUN: FileCheck -input-file=%t %s -check-prefix=GLOBALS_TEST 4; RUN: FileCheck -input-file=%t %s -check-prefix=MEMBERS_TEST 5; RUN: FileCheck -input-file=%t %s -check-prefix=BASE_CLASS_A 6; RUN: FileCheck -input-file=%t %s -check-prefix=BASE_CLASS_B 7; RUN: FileCheck -input-file=%t %s -check-prefix=BASE_CLASS_C 8; RUN: FileCheck -input-file=%t %s -check-prefix=BASE_CLASS_D 9; RUN: FileCheck -input-file=%t %s -check-prefix=UDT_KIND_TEST 10; RUN: FileCheck -input-file=%t %s -check-prefix=BITFIELD_TEST 11 12; GLOBALS_TEST: ---GLOBALS--- 13; GLOBALS_TEST-DAG: int GlobalsTest::IntVar 14; GLOBALS_TEST-DAG: double GlobalsTest::DoubleVar 15; GLOBALS_TEST-DAG: GlobalsTest::Enum GlobalsTest::EnumVar 16 17; MEMBERS_TEST: ---TYPES--- 18; MEMBERS_TEST: class MembersTest::A [sizeof = 16] { 19; MEMBERS_TEST-DAG: typedef int NestedTypedef 20; MEMBERS_TEST-DAG: enum NestedEnum 21; MEMBERS_TEST: void {{(MembersTest::A::)?}}MemberFunc() 22; MEMBERS_TEST-DAG: data +0x00 [sizeof=4] int IntMemberVar 23; MEMBERS_TEST-NEXT: <padding> (4 bytes) 24; MEMBERS_TEST-NEXT: data +0x08 [sizeof=8] double DoubleMemberVar 25; MEMBERS_TEST: } 26 27; BASE_CLASS_A: ---TYPES--- 28; BASE_CLASS_A: class BaseClassTest::A [sizeof = 1] {} 29 30; BASE_CLASS_B: ---TYPES--- 31; BASE_CLASS_B: class BaseClassTest::B [sizeof = 4] 32; BASE_CLASS_B-NEXT: : public virtual BaseClassTest::A { 33 34; BASE_CLASS_C: ---TYPES--- 35; BASE_CLASS_C: class BaseClassTest::C [sizeof = 4] 36; BASE_CLASS_C-NEXT: : public virtual BaseClassTest::A { 37 38; BASE_CLASS_D: ---TYPES--- 39; BASE_CLASS_D: class BaseClassTest::D [sizeof = 8] 40; BASE_CLASS_D-NEXT: protected BaseClassTest::B 41; BASE_CLASS_D-NEXT: private BaseClassTest::C 42 43; UDT_KIND_TEST: ---TYPES--- 44; UDT_KIND_TEST-DAG: union UdtKindTest::C [sizeof = 1] {} 45; UDT_KIND_TEST-DAG: class UdtKindTest::B [sizeof = 1] {} 46; UDT_KIND_TEST-DAG: struct UdtKindTest::A [sizeof = 1] {} 47 48; BITFIELD_TEST: ---TYPES--- 49; BITFIELD_TEST: struct BitFieldTest::A [sizeof = 8] { 50; BITFIELD_TEST-NEXT: +0x00 [sizeof=4] int Bits1 : 1 51; BITFIELD_TEST-NEXT: +0x00 [sizeof=4] int Bits2 : 2 52; BITFIELD_TEST-NEXT: +0x00 [sizeof=4] int Bits3 : 3 53; BITFIELD_TEST-NEXT: +0x00 [sizeof=4] int Bits4 : 4 54; BITFIELD_TEST-NEXT: +0x00 [sizeof=4] int Bits22 : 22 55; BITFIELD_TEST-NEXT: +0x04 [sizeof=4] int Offset0x04 56