summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr87349-1.c
blob: 27e5fdb4f48de7f8ffd60c1c6f8c3fc1fa9ef2b4 (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
/* { dg-do compile } */

void
h1 (int *fh, int pw)
{
  *fh = 0;
  if (*fh != 0)
    for (;;)
      {
	fh = &pw;

	if (pw == 0)
	  {
	  }
	else
	  while (pw < 1)
	    {
	      if (pw == 0)
		{
ut:
		  ;
		}

	      ++pw;
	    }

	if (pw == 0)
	  goto ut;
      }

  goto ut;
}