for loop tests

This commit is contained in:
Bill Currie 2004-03-30 02:31:50 +00:00
parent 25ac9cb07b
commit 8220d6d3c9

22
tools/qfcc/test/for.r Normal file
View file

@ -0,0 +1,22 @@
integer [5] y;
void () foo =
{
local integer x;
for (x = 0; x < 5; x++)
y[x] = 0;
for (; x < 5; x++)
y[x] = 0;
for (x = 0;; x++)
y[x] = 0;
for (;; x++)
y[x] = 0;
for (x = 0; x < 5;)
y[x] = 0;
for (; x < 5;)
y[x] = 0;
for (x = 0;;)
y[x] = 0;
for (;;)
y[x] = 0;
}