quakeforge/tools/qfcc/test
Bill Currie 7701393bd4 Append a new sblock for return when necessary.
If the final block ends in a conditional statement, appending return to the
block will hide the conditional statement from the flow analyzer. This may
cause the conditional statement's destination node be become unreachable
according to the analyzer and thus eliminated. The label for the branch
then loses its target sblock and thus the code generator will produce a
zero-distance jump resulting in an infinite loop.

Thus, if the final block ends in a conditional statement (or, for
completeness, a call statement), append a new empty block before adding the
return statement.
2012-12-21 20:11:27 +09:00
..
old Add a new test case. 2012-11-22 21:59:01 +09:00
.gdbinit v6 modulo test 2010-12-19 11:19:23 +09:00
build-run Support testing v6 progs. 2012-11-22 21:59:01 +09:00
chewed-alias.r Add a test case for the alias chain mangling. 2012-11-27 18:33:41 +09:00
chewed-return.r Don't use the expr type for assignments. 2012-11-30 21:06:08 +09:00
deadbool.r Add a test for the dead boolean expression. 2012-11-26 21:05:24 +09:00
func-static.r Add a test for function local static variables. 2012-12-03 16:27:31 +09:00
infloop.r Add a test for writes to global vars in a loop. 2012-11-24 14:53:45 +09:00
Makefile.am Append a new sblock for return when necessary. 2012-12-21 20:11:27 +09:00
modulo.r Make the failure message clearer. 2012-11-22 21:59:01 +09:00
return-ivar.r Force RETURN's operand to be live. 2012-12-20 21:18:27 +09:00
structlive.r Add a test for struct writes. 2012-12-13 13:44:25 +09:00
structptr.r Make structptr.r a little quieter. 2012-11-22 21:59:01 +09:00
test-bi.c Clear the dstring in test-harness's printf builtin. 2012-12-13 14:59:42 +09:00
test-bi.h Add a test harness for qfcc. 2012-11-22 21:59:01 +09:00
test-harness.c Turn on the runaway loop detector for the test harness. 2012-12-21 20:01:53 +09:00
vecinit.r Add vecinit.r to the test-suite. 2012-12-10 21:09:53 +09:00
voidfor.r Append a new sblock for return when necessary. 2012-12-21 20:11:27 +09:00
while.r Add a test for while (count--) 2012-11-22 21:59:00 +09:00