gcc/testsuite/gcc.c-torture/compile/930217-1.c
raw| 1 | /* { dg-additional-options "-std=gnu89" } */ |
| 2 | |
| 3 | /* The bit-field below would have a problem if __INT_MAX__ is too |
| 4 | small. */ |
| 5 | #if __INT_MAX__ < 2147483647 |
| 6 | int a; |
| 7 | #else |
| 8 | double g (); |
| 9 | typedef union { |
| 10 | struct { |
| 11 | unsigned s:1, e:8, f:23; |
| 12 | } u; |
| 13 | float f; |
| 14 | } s; |
| 15 | |
| 16 | f(x, n) |
| 17 | float x; |
| 18 | { |
| 19 | ((s *)&x)->u.e -= n; |
| 20 | x = g((double)x, -n); |
| 21 | } |
| 22 | #endif |