quakeforge/tools/qfcc/test/upostop.r
Bill Currie 674fbae225 [qfcc] Rework binary_expr to be support matrices
And, nicely, simplify it quite a bit. I'm not sure why I didn't thinkg
of this approach before. While the ruamoko back-end doesn't support
matrices yet, the expressions are handled.

As a side effect, type checking on comparisons is "stricter" in that
more potentially bogus comparisons (eg, int-float) are caught, resulting
in a few warnings in ruamoko code and even finding a couple of bugs.
2024-12-05 00:18:47 +09:00

17 lines
218 B
R

int iter_check (unsigned count)
{
unsigned i = count;
int iters = 0;
while (i-- > 0) {
iters++;
}
return (unsigned) iters == count;
}
int
main ()
{
int ret = 0;
ret |= !iter_check (1);
return ret;
}