summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr66733-2.c
blob: 6687bd0c7f071b3368d96701856e4651e6a93b02 (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
40
41
42
43
44
45
46
/* { dg-do compile } */

int a, b, c, e, f;

void fn1 (int p) { }

int
fn2 (int p)
{
  return a ? p % a : 0; 
}

short
fn3 (int p)
{
  return (1 >> p) < 1 ? 1 : p;
}

int
fn4 ()
{
  int g = 0, h = 1;
  if (b)
    goto lbl;
  fn2 (0);
  if (fn3 (1))
    fn1 (e && c);
  if (h)
    {
      int i = 1;
lbl:
      if (i)
	return 0;
      for (; g < 1; g++)
	;
    }
  for (;;)
    f || g > 0;
}

int
main ()
{
  fn4 (); 
  return 0;
}