gcc/testsuite/gcc.c-torture/execute/20000217-1.c
raw| 1 | void abort(void); |
| 2 | void exit(int); |
| 3 | |
| 4 | unsigned short int showbug(unsigned short int *a, unsigned short int *b) |
| 5 | { |
| 6 | *a += *b -8; |
| 7 | return (*a >= 8); |
| 8 | } |
| 9 | |
| 10 | int main() |
| 11 | { |
| 12 | unsigned short int x = 0; |
| 13 | unsigned short int y = 10; |
| 14 | |
| 15 | if (showbug(&x, &y) != 0) |
| 16 | abort (); |
| 17 | |
| 18 | exit (0); |
| 19 | } |
| 20 |