Commit b197bc01 by Jason Merrill

new test

From-SVN: r60263
parent 9d303046
/* Simple test for proper postincrement semantics. */
/* { dg-do run } */
int i;
int c;
int *f ()
{
++c;
return &i;
}
int main ()
{
int r;
r = (*f())++;
if (!(r == 0 && i == 1 && c == 1))
abort ();
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment