aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/098.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/098.sh')
-rw-r--r--tests/098.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/098.sh b/tests/098.sh
new file mode 100644
index 0000000..33c4f17
--- /dev/null
+++ b/tests/098.sh
@@ -0,0 +1,16 @@
+cat > foo.c <<'EOF'
+int main() {}
+EOF
+
+"$ducc" -o bar.s foo.c
+if [[ $? -ne 0 ]]; then
+ exit 1
+fi
+gcc -o a.out bar.s
+./a.out "$@"
+exit_code=$?
+
+if [[ $exit_code -ne 0 ]]; then
+ echo "invalid exit code: $exit_code" >&2
+ exit 1
+fi