repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR tree-optimization/67955
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
abi
/
align1.C
blob
2a70bce601f93aadb87651168f0b87ce77cc2e2b
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