aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/008.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/008.sh')
-rw-r--r--tests/008.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/008.sh b/tests/008.sh
new file mode 100644
index 0000000..94936cd
--- /dev/null
+++ b/tests/008.sh
@@ -0,0 +1,11 @@
+set -e
+
+bash ../../test_exit_code.sh 70 <<'EOF'
+int main() {
+ int foo;
+ int bar;
+ foo = 42;
+ bar = 28;
+ return foo + bar;
+}
+EOF