blob: 2a70bce601f93aadb87651168f0b87ce77cc2e2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// This was failuring on powerpc-darwin and powerpc-aix as
// we were taking the embeded type as the first field decl.
// This was PR target/18761.
// { dg-do run }
union A {
double d;
};
union B {
enum E { e };
double d;
};
struct AlignA {
char c;
A a;
};
struct AlignB {
char c;
B b;
};
extern "C" void abort ();
int main () {
if ( __alignof__ (AlignA) != __alignof__ (AlignB))
abort ();
}
|