diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-09-03 20:27:16 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-09-03 20:27:16 +0900 |
| commit | f3a1ea57244608c1795e7f90cb3077c6a01686a9 (patch) | |
| tree | bfa3d91dd15d5d42043c2ed8fbd717614931d748 /tests | |
| parent | 5541c597cb68f76d1fc53e01b931eb870856843c (diff) | |
| download | ducc-f3a1ea57244608c1795e7f90cb3077c6a01686a9.tar.gz ducc-f3a1ea57244608c1795e7f90cb3077c6a01686a9.tar.zst ducc-f3a1ea57244608c1795e7f90cb3077c6a01686a9.zip | |
feat: rewrite function declaration parsing
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/059.sh | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/059.sh b/tests/059.sh index a7b92d0..b478b14 100644 --- a/tests/059.sh +++ b/tests/059.sh @@ -1,13 +1,21 @@ +# TODO: improve error message +# cat <<'EOF' > expected +# main.c:1: expected ';' or '{', but got '}' +# EOF cat <<'EOF' > expected -main.c:1: expected '{', but got '}' +main.c:1: expected ';', but got '}' EOF test_compile_error <<'EOF' int main() } EOF +# TODO: improve error message +# cat <<'EOF' > expected +# main.c:1: expected ';' or '{', but got '}' +# EOF cat <<'EOF' > expected -main.c:1: expected '{', but got '123' +main.c:1: expected ';', but got '123' EOF test_compile_error <<'EOF' |
