gcc/testsuite/gcc.c-torture/compile/dblbug.c
raw| 1 | /* { dg-additional-options "-std=gnu89" } */ |
| 2 | |
| 3 | union real_extract |
| 4 | { |
| 5 | double d; |
| 6 | int i[sizeof (double ) / sizeof (int)]; |
| 7 | }; |
| 8 | |
| 9 | typedef struct |
| 10 | { |
| 11 | int zzzz; |
| 12 | } *rtx; |
| 13 | |
| 14 | rtx |
| 15 | immed_real_const_1 (d) |
| 16 | double d; |
| 17 | { |
| 18 | union real_extract u; |
| 19 | register rtx r; |
| 20 | |
| 21 | u.d = d; |
| 22 | foo (&(r->zzzz), &u); |
| 23 | } |