gcc/testsuite/gcc.c-torture/compile/20081203-1.c
raw| 1 | /* PR rtl-optimization/38281 */ |
| 2 | /* Reporter: John Regehr <[email protected]> */ |
| 3 | /* Testcase by Jakub Jelinek <[email protected]> */ |
| 4 | |
| 5 | inline unsigned short |
| 6 | foo (unsigned short x, unsigned short y) |
| 7 | { |
| 8 | if (y == 0) |
| 9 | return x; |
| 10 | return x / y; |
| 11 | } |
| 12 | |
| 13 | unsigned short a, b, c; |
| 14 | |
| 15 | extern int baz (int, int); |
| 16 | |
| 17 | void |
| 18 | bar (void) |
| 19 | { |
| 20 | int d = 0x3D75D162; |
| 21 | a = foo (b > d, baz (0, 1)); |
| 22 | for (c = 0; c; c = 1) |
| 23 | ; |
| 24 | } |