Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / override-layout-packed-base.cpp
blob0b1e0051ea8bac180542acd3dba719947142fb37
1 // RUN: %clang_cc1 -triple i686-windows-msvc -w -fdump-record-layouts-simple -foverride-record-layout=%S/Inputs/override-layout-packed-base.layout %s | FileCheck %s
3 //#pragma pack(push, 1)
5 // CHECK: Type: class B<0>
6 // CHECK: Size:40
7 // CHECK: FieldOffsets: [0, 32]
9 // CHECK: Type: class B<1>
10 // CHECK: Size:40
11 // CHECK: FieldOffsets: [0, 32]
13 template<int I>
14 class B {
15 int _b1;
16 char _b2;
19 // CHECK: Type: class C
20 // CHECK: Size:88
21 // CHECK: FieldOffsets: [80]
23 class C : B<0>, B<1> {
24 char _c;
27 // CHECK: Type: class D
28 // CHECK: Size:120
29 // CHECK: FieldOffsets: [32]
31 class D : virtual B<0>, virtual B<1> {
32 char _d;
35 //#pragma pack(pop)
37 void use_structs() {
38 C cs;
39 D ds;