gcc/testsuite/gcc.c-torture/compile/pr39202.c
raw| 1 | typedef struct |
| 2 | { |
| 3 | union |
| 4 | { |
| 5 | int * aaa; |
| 6 | } u; |
| 7 | } t_a; |
| 8 | |
| 9 | typedef struct |
| 10 | { |
| 11 | unsigned bbb : 1; |
| 12 | } t_b; |
| 13 | |
| 14 | typedef struct |
| 15 | { |
| 16 | int ccc; |
| 17 | t_a ddd; |
| 18 | t_b eee; |
| 19 | int fff; |
| 20 | } t_c; |
| 21 | |
| 22 | typedef struct t_d |
| 23 | { |
| 24 | t_c f1; |
| 25 | t_c f2; |
| 26 | } t_d; |
| 27 | |
| 28 | void foo (void) |
| 29 | { |
| 30 | t_d ggg; |
| 31 | ggg.f1 = ggg.f2; |
| 32 | } |
| 33 |