diff options
Diffstat (limited to 'tests/010.sh')
| -rw-r--r-- | tests/010.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/010.sh b/tests/010.sh new file mode 100644 index 0000000..df6601c --- /dev/null +++ b/tests/010.sh @@ -0,0 +1,21 @@ +set -e + +bash ../../test_exit_code.sh 12 <<'EOF' +int main() { + if (1) { + return 12; + } else { + return 34; + } +} +EOF + +bash ../../test_exit_code.sh 34 <<'EOF' +int main() { + if (1 + 1 != 2) { + return 12; + } else { + return 34; + } +} +EOF |
