gcc/testsuite/g++.old-deja/g++.brendan/misc7.C
raw| 1 | // { dg-do run } |
| 2 | // GROUPS passed miscellaneous |
| 3 | extern "C" int printf (const char *, ...); |
| 4 | |
| 5 | int main() |
| 6 | { |
| 7 | int i = 0; |
| 8 | // Make sure build_unary_op correctly computes this. |
| 9 | int *pi = &(++i); |
| 10 | *pi = 4; |
| 11 | |
| 12 | if (i != 4) |
| 13 | { printf ("FAIL\n"); return 1; } |
| 14 | else |
| 15 | printf ("PASS\n"); |
| 16 | } |