gcc/testsuite/gcc.c-torture/compile/20071118-1.c
raw| 1 | /* PR rtl-optimization/34132 */ |
| 2 | /* Testcase by Martin Michlmayr <[email protected]> */ |
| 3 | |
| 4 | static char *m = "%s%u.msg"; |
| 5 | extern void bar (int, const char *); |
| 6 | void foo (short x, int y, int z) |
| 7 | { |
| 8 | if (x == 0) |
| 9 | { |
| 10 | bar (y, m); |
| 11 | z = 1; |
| 12 | } |
| 13 | else if (x == 1) |
| 14 | z = 0; |
| 15 | bar (y, m); |
| 16 | bar (z, "%d"); |
| 17 | } |