summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr56264.c
blob: ca5eb47ff6b88489306f22bb542cc6d6026935af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do compile } */
/* { dg-options "-funswitch-loops" } */

int a, b, c;

void f(void)
{
  if(b)
    {
      for(a = 0; a < 1; a++)
	lbl:
	    c = c && b ? : 0;

      c = 0;
      goto lbl;
    }

  if(a)
    goto lbl;
}