diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/064.sh | 6 | ||||
| -rw-r--r-- | tests/065.sh | 8 |
2 files changed, 10 insertions, 4 deletions
diff --git a/tests/064.sh b/tests/064.sh index 80fba4f..c3b6028 100644 --- a/tests/064.sh +++ b/tests/064.sh @@ -14,9 +14,7 @@ EOF bash ../../test_exit_code.sh 0 <<'EOF' int main() { - if (1) { - } else { - return 1; - } + if (1); + else return 1; } EOF diff --git a/tests/065.sh b/tests/065.sh new file mode 100644 index 0000000..b644bed --- /dev/null +++ b/tests/065.sh @@ -0,0 +1,8 @@ +set -e + +cat <<'EOF' > expected +EOF + +bash ../../test_diff.sh <<'EOF' +int main() { ; } +EOF |
