summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/950714-1.c
blob: 5dc44a906e2948ace252f52df6b884ba5b0bf540 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
int array[10] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1};

main ()
{
  int i, j;
  int *p;

  for (i = 0; i < 10; i++)
    for (p = &array[0]; p != &array[9]; p++)
      if (*p == i)
	goto label;

 label:
  if (i != 1)
    abort ();
  exit (0);
}