mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
for loop tests
This commit is contained in:
parent
25ac9cb07b
commit
8220d6d3c9
1 changed files with 22 additions and 0 deletions
22
tools/qfcc/test/for.r
Normal file
22
tools/qfcc/test/for.r
Normal 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;
|
||||
}
|
Loading…
Reference in a new issue