summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr82320.c
blob: a4943fc0a54ba9884e5dc35755ded08471e83af6 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
/* { dg-do compile } */

void
ec (int n4, short int ea)
{
  if (1)
    {
      if (ea != 0)
	{
	  int *c1 = (int *)&ea;

nn:
	  for (;;)
	    ++*c1;
	}
    }
  else
    {
      int *lq = &n4;
      int *md;
      int da;

      goto nn;

r1:
      md = lq;
      for (da = 0; da < 1; ++da)
	{
ig:
	  ++n4;
	  *md += n4;
	}
    }

  for (ea = 0; ea < 1; ++ea)
    goto r1;

  goto ig;
}