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