quakeforge/tools/qfcc/test/upostop.r
Bill Currie 54839db826 [qfcc] Add some tests for postop--
Interestingly, intval-- works properly, but unsignedval-- does not (test
case fails). This is why menus blow up when opening the load/save
sub-menu.
2023-12-20 21:50:51 +09:00

17 lines
207 B
R

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