quakeforge/tools/qfcc/test/old/bool.r

19 lines
265 B
R
Raw Normal View History

integer (integer x, integer y, integer z) foo =
{
if (x || !y && z) {
return x || y && z;
} else {
for (x = 0; (x || y) && z < 3; x++)
return (x || y && z) ? 4 : 9;
}
return !x;
};
2011-03-03 23:27:26 +00:00
float bar (void *a)
{
void *b;
if (!(b = a))
return 1;
return 2;
}