2 pr20100-1.c from the execute part of the gcc torture tests.
11 /* PR tree-optimization/20100
12 Pure function being treated as const.
13 Author: Hans-Peter Nilsson. */
15 static unsigned short g
= 0;
16 static unsigned short p
= 0;
22 return g
== e
- 1 ? 0 : g
+ 1;
46 if (curr_p () == curr_g ())
53 frob (unsigned short a
, unsigned short b
)
67 while (!ring_empty () && n
< 5)
77 testTortureExecute (void)
80 if (frob (0, 2) != 0 || g
!= 1 || p
!= 2 || e
!= 3