mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-15 01:11:27 +00:00
d29ea55826
I think the compiler segfaulting indicates a test failure.
26 lines
310 B
R
26 lines
310 B
R
void printf (string fmt, ...) = #0;
|
|
|
|
int
|
|
test_fordecl ()
|
|
{
|
|
int fail = 1;
|
|
int count = 5;
|
|
|
|
for (int i = 3, j = 5; count-- > 0; ) {
|
|
i += 2;
|
|
j += 3;
|
|
}
|
|
if (i == 13 && j == 20) {
|
|
fail = 0;
|
|
}
|
|
|
|
return fail;
|
|
}
|
|
|
|
int
|
|
main ()
|
|
{
|
|
int fail = 0;
|
|
fail |= test_fordecl ();
|
|
return fail;
|
|
}
|