diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/064.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/064.sh b/tests/064.sh new file mode 100644 index 0000000..80fba4f --- /dev/null +++ b/tests/064.sh @@ -0,0 +1,22 @@ +set -e + +# C99: 5.1.2.2.3 +bash ../../test_exit_code.sh 0 <<'EOF' +int main() { +} +EOF + +bash ../../test_exit_code.sh 0 <<'EOF' +int main() { + 1 + 2 + 3; +} +EOF + +bash ../../test_exit_code.sh 0 <<'EOF' +int main() { + if (1) { + } else { + return 1; + } +} +EOF |
