gcc/testsuite/gcc.target/i386/pr79571.c
raw| 1 | /* PR rtl-optimization/79571 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-O -mno-sse -w" } */ |
| 4 | |
| 5 | struct a |
| 6 | { |
| 7 | int b; |
| 8 | int *c |
| 9 | } h; |
| 10 | struct d |
| 11 | { |
| 12 | struct a e |
| 13 | }; |
| 14 | struct fd |
| 15 | { |
| 16 | struct d *d |
| 17 | } i; |
| 18 | int g; |
| 19 | void |
| 20 | j (void) |
| 21 | { |
| 22 | unsigned a = g; |
| 23 | i = (struct fd){(struct d *) (a & 3)}; |
| 24 | struct fd f = i; |
| 25 | h = f.d->e; |
| 26 | } |