summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr68083.c
blob: ae24781cfd7efdf07aa26fe6c85c1b115d4fac35 (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
/* { dg-do run } */

int a = 2, b = 1, c = 1;

int
fn1 ()
{
  int d;
  for (; a; a--)
    {
      for (d = 0; d < 4; d++)
	{
	  int k;
	  if (c < 1)
	    if (k)
	      c = 0;
	  if (b)
	    continue;
	  return 0;
	}
      b = !1;
    }
  return 0;
}

int
main ()
{
  fn1 ();

  if (a != 1)
    __builtin_abort ();

  return 0;
}