* gcc.dg/ucnid-[23456].c: XFAIL on AIX.
[official-gcc.git] / gcc / testsuite / gcc.dg / 20030805-1.c
blob6297c5d83ea5b825a8845cba4365f229796edb4a
1 /* Test that gcc understands that the call to g might clobber i. */
3 /* { dg-do run } */
4 /* { dg-options "-O2" } */
6 __inline int f ()
8 static int i;
9 int i2 = i;
10 i = i2 + 1;
11 return i;
14 int g () { return f (); }
16 int main ()
18 if (f() != 1
19 || g() != 2
20 || f() != 3)
21 return 1;
22 return 0;