gcc/testsuite/gcc.dg/pr90733.c
raw| 1 | /* PR debug/90733 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-g -O2 -w" } */ |
| 4 | |
| 5 | struct S { unsigned a : 1; }; |
| 6 | union U { struct S b; _Complex unsigned c; }; |
| 7 | |
| 8 | union U |
| 9 | foo (union U d) |
| 10 | { |
| 11 | union U e = d; |
| 12 | return e; |
| 13 | } |
| 14 | |
| 15 | int |
| 16 | bar (void) |
| 17 | { |
| 18 | union U x, y; |
| 19 | x.c = x.b.a; |
| 20 | y = foo (x); |
| 21 | return x.c != y.c; |
| 22 | } |