summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr84746.c
blob: 5c00a91874fa9d6a10406f456bc3dbfb3b4e16f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* { dg-do compile } */

int a, b, c, d, e;
char f, g;

void fn1 ()
{
  while (1)
    {
      if (d)
	goto L1;
      if (e)
	goto L3;
      int q = (c && a) % (f * (d || a)) && b;
      e = q;
      if (b)
	break;
L1:
L2:
      c = f;
L3:
      f = g;
      while (a)
	goto L2;
    }
}