xref: /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/execute/loop-11.c (revision c87b03e512fc05ed6e0222f6fb0ae86264b1d05b)
1 static int a[199];
2 
3 static void
foo()4 foo ()
5 {
6   int i;
7   for (i = 198; i >= 0; i--)
8     a[i] = i;
9 }
10 
11 int
main()12 main ()
13 {
14   int i;
15   foo ();
16   for (i = 0; i < 199; i++)
17     if (a[i] != i)
18       abort ();
19   return 0;
20 }
21