Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.c-torture/compile/20020320-1.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
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 | |
145 | 5 /* { dg-require-effective-target indirect_calls } */ |
6 | |
111 | 7 typedef void (*T) (void); |
8 extern T x[]; | |
9 | |
10 void | |
11 foo (void) | |
12 { | |
13 static T *p = x; | |
14 static _Bool a; | |
15 T f; | |
16 | |
17 if (__builtin_expect (a, 0)) | |
18 return; | |
19 | |
20 while ((f = *p)) | |
21 { | |
22 p++; | |
23 f (); | |
24 } | |
25 a = 1; | |
26 } |