summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/gcc.dg/loop-5.c
blob: 198823b1962548c407f2aa59006a1d6928098730 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR c/16180 */
/* { dg-options "-O2" } */

extern int b;
int foo (int a)
{
  if (a)
    {
      b = 0;
      for(;;)
	goto L;
    }
 L:
  for(;;)
    return 0;
}
OpenPOWER on IntegriCloud