OSDN Git Service

2005-01-11 Andrew Pinski <pinskia@physics.uc.edu>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / abi / align1.C
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 }
5
6
7 union A {
8   double d;
9 };
10 union B {
11   enum E { e };
12   double d;
13 };
14 struct AlignA {
15   char c;
16   A a;
17 };
18 struct AlignB {
19   char c;
20   B b;
21 };
22 extern "C" void abort ();
23 int main () {
24   if ( __alignof__ (AlignA) != __alignof__ (AlignB))
25     abort ();
26 }
27