scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 612c1e5c2597e481ef27bdd33b771656590e7052
parent e76c262958171f2ab472c3b9d3e15720169c8bca
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri,  4 Nov 2022 05:27:01 +0100

test/cc: Check function return in compose.sh

Diffstat:
Mtests/cc/execute/compose.sh | 7++-----
1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/tests/cc/execute/compose.sh b/tests/cc/execute/compose.sh @@ -13,11 +13,8 @@ do n=`echo $i | sed 's/\(.*\)-.*\.c/\1/'` sed s/main/main_$n/ < $i > tmp_$n.c echo "int main_$n();" >> tests.h - echo "main_$n();" - + printf "\tif (main_$n()) return -1;\n" done -echo 'return 0;' -echo '}' +printf '\treturn 0;\n}\n' ) > tmp_test.c -