PR target/55146
[official-gcc.git] / gcc / testsuite / gcc.dg / union-1.c
blob0dd2df9b064e0b3a195488e0b969d0aff43c32eb
1 /* PR target/15783 */
2 /* Origin: Paul Pluzhnikov <ppluzhnikov@charter.net> */
4 /* This used to ICE on SPARC 64-bit because the back-end was
5 returning an invalid construct for the return value of fu2. */
7 /* { dg-do compile } */
9 union u2 {
10 struct
12 int u2s_a, u2s_b, u2s_c, u2s_d, u2s_e;
13 } u2_s;
14 double u2_d;
15 } u2a;
17 union u2 fu2();
19 void unions()
21 u2a = fu2();