aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/unsorted/memtst.c
blob: b345ba00b3c90483e0c87b40152d0da96c24e0b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
memtst (int *p, int a)
{
  do
    {
      if (p[a] == 1)
	break;
    }
  while (--a);
}

main ()
{
  int a[65536];
  int i;
  bzero (a, 65536 * 4);
  for (i = 0;  i < 100;  i++)
    {
      memtst (a, 65536);
    }
}