OSDN Git Service

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