1 // RUN: %clang_cc1 -w -triple=x86_64-pc-win32 -fms-compatibility -fdump-record-layouts-simple -foverride-record-layout=%S/Inputs/override-layout-virtual-base.layout %s | FileCheck --check-prefix=SIMPLE %s
2 // RUN: %clang_cc1 -w -triple=x86_64-pc-win32 -fms-compatibility -fdump-record-layouts -foverride-record-layout=%S/Inputs/override-layout-virtual-base.layout %s | FileCheck %s
8 struct S2
: virtual S1
{
12 // SIMPLE: Type: struct S3
13 // SIMPLE: FieldOffsets: [64]
25 // CHECK: *** Dumping AST Record Layout
26 // CHECK: 0 | struct S2
27 // CHECK-NEXT: 0 | (S2 vftable pointer)
28 // CHECK-NEXT: 8 | (S2 vbtable pointer)
29 // CHECK-NEXT: 8 | struct S1 (virtual base)
30 // CHECK-NEXT: 8 | int a
31 // CHECK-NEXT: | [sizeof=8, align=8,
32 // CHECK-NEXT: | nvsize=8, nvalign=8]
33 // CHECK: *** Dumping AST Record Layout
34 // CHECK: 0 | struct S3
35 // CHECK-NEXT: 0 | struct S2 (primary base)
36 // CHECK-NEXT: 0 | (S2 vftable pointer)
37 // CHECK-NEXT: 8 | (S2 vbtable pointer)
38 // CHECK-NEXT: 8 | char b
39 // CHECK-NEXT: 16 | struct S1 (virtual base)
40 // CHECK-NEXT: 16 | int a
41 // CHECK-NEXT: | [sizeof=24, align=8,
42 // CHECK-NEXT: | nvsize=16, nvalign=8]
43 // CHECK: *** Dumping AST Record Layout
44 // CHECK: 0 | struct S5
45 // CHECK-NEXT: 0 | (S5 vftable pointer)
46 // CHECK-NEXT: 0 | struct S4 (base) (empty)
47 // CHECK-NEXT: | [sizeof=8, align=8,
48 // CHECK-NEXT: | nvsize=8, nvalign=8]