summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/961004-1.c
blob: 7ebba2d7b1ee04b81c47542986f80c669b7405d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
int k = 0;

main()
{
  int i;
  int j;

  for (i = 0; i < 2; i++)
    {
      if (k)
	{
	  if (j != 2)
	    abort ();
	}
      else
	{
	  j = 2;
	  k++;
	}
    }
  exit (0);
}