PR c/64856
[official-gcc.git] / gcc / testsuite / gcc.dg / pr48770.c
blob446389d491406250c5a8b201db95c417b894590a
1 /* { dg-do run } */
2 /* { dg-require-effective-target fpic } */
3 /* { dg-options "-O -fprofile-arcs -fPIC -fno-dce -fno-forward-propagate" } */
5 int test_goto2 (int f)
7 int i;
8 for (i = 0; ({_Bool a = i < 10;a;}); i++)
10 if (i == f)
11 goto lab2;
13 return 4;
14 lab2:
15 return 8;
18 int main ()
20 test_goto2 (30);
21 return 0;
24 /* { dg-final { cleanup-coverage-files } } */