aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr71802.c
blob: 0dd14671c5198e823c6195197dfda31b13251a4f (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
/* { dg-do compile } */

int b, c;
long d, f;
void fn1()
{
  char g;
  long long h = 0;
  int *i;
  if (0) {
L2:
      b && (b = f);
      d = 3;
      for (; d;) {
	  char *j = &g;
	  c = *j = 0;
L3:
	  *j %= b;
	  for (; g <= 4;)
	    ;
      }
      goto L2;
  }
  for (; *i; *i = 1) {
      if ((h -= 4) == (h != (b ?: d))) {
	  g = 3;
	  goto L3;
      }
      i = (int *)&h;
      *i = f;
      i = (int *)&f;
      if ((h && 6) - (h = 0))
	goto L2;
  }
  for (; d;)
    goto L3;
}