gcc/testsuite/gcc.c-torture/execute/960317-1.c
raw| 1 | void abort (void); |
| 2 | void exit (int); |
| 3 | |
| 4 | int |
| 5 | f (unsigned bitcount, int mant) |
| 6 | { |
| 7 | int mask = -1 << bitcount; |
| 8 | { |
| 9 | if (! (mant & -mask)) |
| 10 | goto ab; |
| 11 | if (mant & ~mask) |
| 12 | goto auf; |
| 13 | } |
| 14 | ab: |
| 15 | return 0; |
| 16 | auf: |
| 17 | return 1; |
| 18 | } |
| 19 | |
| 20 | int |
| 21 | main (void) |
| 22 | { |
| 23 | if (f (0, -1)) |
| 24 | abort (); |
| 25 | exit (0); |
| 26 | } |