shithub: scc

Download patch

ref: fe758342bf28b59036dad71051e347aaf5017d49
parent: 98bc946e4cdf9072897f0971067370fe094701d9
author: Roberto E. Vargas Caballero <[email protected]>
date: Wed Aug 17 14:05:25 EDT 2016

[test] Remove previous a.out before compiling

If the compilation fails with a segmentation fault then we can have
a a.out file from a previous test.

--- a/tests/chktest.sh
+++ b/tests/chktest.sh
@@ -7,5 +7,6 @@
 for i in $@
 do
 	printf "%s\t" $i
+	rm -f a.out
 	(scc -m qbe "$i" && ./a.out) 2>/dev/null && echo [OK] || echo [FAILED]
 done