quakeforge/tools/qfcc/test/deadbool.r
Bill Currie 215ff61216 Add a test for the dead boolean expression.
This tests the zombie label problem found via ctf.
2012-11-26 21:05:24 +09:00

19 lines
229 B
R

entity spawn (void) { return nil; }
.float f;
float time;
void foo (void)
{
local entity ent;
return;
if (!time) {
ent = spawn ();
ent.f = time + 0.1;
}
}
int main ()
{
return 0; // if the test compiles, it passes.
}