Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / abi / align1.C
blob2a70bce601f93aadb87651168f0b87ce77cc2e2b
1 // This was failuring on powerpc-darwin and powerpc-aix as
2 // we were taking the embeded type as the first field decl.
3 //  This was PR target/18761. 
4 // { dg-do run }
7 union A {
8   double d;
9 };
10 union B {
11   enum E { e };
12   double d;
14 struct AlignA {
15   char c;
16   A a;
18 struct AlignB {
19   char c;
20   B b;
22 extern "C" void abort ();
23 int main () {
24   if ( __alignof__ (AlignA) != __alignof__ (AlignB))
25     abort ();