Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.c-torture/compile/20020320-1.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
rev | line source |
---|---|
111 | 1 /* PR bootstrap/4192 |
2 This testcase caused infinite loop in flow (several places), | |
3 because flow assumes gen_jump generates simple_jump_p. */ | |
4 | |
5 typedef void (*T) (void); | |
6 extern T x[]; | |
7 | |
8 void | |
9 foo (void) | |
10 { | |
11 static T *p = x; | |
12 static _Bool a; | |
13 T f; | |
14 | |
15 if (__builtin_expect (a, 0)) | |
16 return; | |
17 | |
18 while ((f = *p)) | |
19 { | |
20 p++; | |
21 f (); | |
22 } | |
23 a = 1; | |
24 } |