Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Layout / aix-Wpacked-expecting-diagnostics.cpp
blob1576b8561cb56ec2d09db60ec0153082bd3a081d
1 // RUN: %clang_cc1 -triple powerpc-ibm-aix-xcoff -Wpacked \
2 // RUN: -fdump-record-layouts -fsyntax-only -verify -x c++ < %s | \
3 // RUN: FileCheck %s
5 // RUN: %clang_cc1 -triple powerpc64-ibm-aix-xcoff -Wpacked \
6 // RUN: -fdump-record-layouts -fsyntax-only -verify -x c++ < %s | \
7 // RUN: FileCheck %s
9 // expected-no-diagnostics
11 struct A {
12 double d;
15 struct B {
16 char x[8];
19 struct [[gnu::packed]] C : B, A {
20 char x alignas(4)[8];
23 int b = sizeof(C);
25 // CHECK: 0 | struct C
26 // CHECK-NEXT: 0 | struct B (base)
27 // CHECK-NEXT: 0 | char[8] x
28 // CHECK-NEXT: 8 | struct A (base)
29 // CHECK-NEXT: 8 | double d
30 // CHECK-NEXT: 16 | char[8] x
31 // CHECK-NEXT: | [sizeof=24, dsize=24, align=4, preferredalign=4,
32 // CHECK-NEXT: | nvsize=24, nvalign=4, preferrednvalign=4]