* Mainline merge as of 2006-02-16 (@111136).
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / 20020320-1.c
blob385c061e19321bdb2c096cb153ffe06a3b6e1271
1 /* PR bootstrap/4192
2 This testcase caused infinite loop in flow (several places),
3 because flow assumes gen_jump generates simple_jump_p. */
5 typedef void (*T) (void);
6 extern T x[];
8 void
9 foo (void)
11 static T *p = x;
12 static _Bool a;
13 T f;
15 if (__builtin_expect (a, 0))
16 return;
18 while ((f = *p))
20 p++;
21 f ();
23 a = 1;