summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr70623.c
blob: 37f2712d87d7672b3e39d48dd9e1c0a7b10a4fc3 (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
/* { dg-do compile } */
/* { dg-additional-options "-w" } */

int nm;
int *av;

void
h9(void)
{
  for (;;) {
      int wk, rc;
      int **ptr_10 = &av;
      if (*av != 0) {
      }
u4:
      wk = 0;
      for (rc = 0; rc < 3; ++rc) {
	  int bc = (rc ? rc : nm);
	  int ud = bc ? (*av ? 0 : rc) : 1;
	  if (ud != 0) {
	      if (*av != 0)
		goto u4;
	      for (;;) {
	      }
	  }
      }
      while (wk < 3) {
	  av = **ptr_10;
	  ++wk;
      }
  }
}