summaryrefslogtreecommitdiff
path: root/runv
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2019-10-17 20:19:22 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2019-10-17 20:19:22 -0400
commit54da571f3d6600033e9f7bac3be4aeebdf20d374 (patch)
treec51ac008bdbc9ba9b9138a61bed8952a0acc0c8f /runv
parent6092b753c5ba6d5b458c38b283b0f3bc50e5393b (diff)
basic cgen block return values
Diffstat (limited to 'runv')
-rwxr-xr-xrunv7
1 files changed, 5 insertions, 2 deletions
diff --git a/runv b/runv
index bf00c4f..698e83d 100755
--- a/runv
+++ b/runv
@@ -1,2 +1,5 @@
-#!/bin/bash
-valgrind -q --track-origins=yes ./toc test.toc
+#!/bin/sh
+valgrind -q --track-origins=yes ./toc test.toc || exit 1
+if [ "$1" = "c" ]; then
+ gcc out.c && ./a.out
+fi