summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/20010221-1.c
blob: 3caff81931a0a79d35f5c453590a94aec04fd3a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
int n = 2;

main ()
{
  int i, x = 45;

  for (i = 0; i < n; i++)
    {
      if (i != 0)
	x = ( i > 0 ) ? i : 0;
    }

  if (x != 1)
    abort ();
  exit (0);
}