aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/misc7.C
blob: 078dbc9c858b1787ff8d9259e821818468c1e8b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// GROUPS passed miscellaneous
extern "C" void printf (char *, ...);

main()
{
  int i = 0;
  // Make sure build_unary_op correctly computes this.
  int *pi = &(++i);
  *pi = 4;

  if (i != 4)
    printf ("FAIL\n");
  else
    printf ("PASS\n");
}