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