aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/013.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/013.sh')
-rw-r--r--tests/013.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/013.sh b/tests/013.sh
new file mode 100644
index 0000000..8381d0e
--- /dev/null
+++ b/tests/013.sh
@@ -0,0 +1,17 @@
+set -e
+
+bash ../../test_exit_code.sh 66 <<'EOF'
+int main() {
+ int i;
+ int ret;
+ i = 0;
+ ret = 0;
+ for (i = 0; i < 100; i = i + 1) {
+ if (i == 12) {
+ break;
+ }
+ ret = ret + i;
+ }
+ return ret;
+}
+EOF