diff options
author | Ben Smith <binji@chromium.org> | 2020-05-14 17:58:29 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-14 17:58:29 -0700 |
commit | ebbf625e15b844d43feb24134b9a9cd3ea91daca (patch) | |
tree | 0d516ecbb2589b1c5e8ae7685bcdb956f523161a /test/parse/expr/bad-try-multiple-catch.txt | |
parent | d087e702d520207871ae82c58461fb08d58af187 (diff) | |
download | wabt-ebbf625e15b844d43feb24134b9a9cd3ea91daca.tar.gz wabt-ebbf625e15b844d43feb24134b9a9cd3ea91daca.tar.bz2 wabt-ebbf625e15b844d43feb24134b9a9cd3ea91daca.zip |
Require `do` in folded `try` statement (#1425)
For example:
```
(try $label (param ...) (result ...)
(do ...)
(catch ...)
)
```
See comment here:
https://github.com/WebAssembly/exception-handling/issues/52#issuecomment-626696720
Diffstat (limited to 'test/parse/expr/bad-try-multiple-catch.txt')
-rw-r--r-- | test/parse/expr/bad-try-multiple-catch.txt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/parse/expr/bad-try-multiple-catch.txt b/test/parse/expr/bad-try-multiple-catch.txt index 7e88a1a8..4f91a6f9 100644 --- a/test/parse/expr/bad-try-multiple-catch.txt +++ b/test/parse/expr/bad-try-multiple-catch.txt @@ -15,7 +15,8 @@ ;; folded (func (try - (nop) + (do + (nop)) (catch (nop)) (catch @@ -27,10 +28,10 @@ out/test/parse/expr/bad-try-multiple-catch.txt:11:5: error: unexpected token cat out/test/parse/expr/bad-try-multiple-catch.txt:13:5: error: unexpected token end, expected ). end) ^^^ -out/test/parse/expr/bad-try-multiple-catch.txt:21:7: error: unexpected token (, expected ). +out/test/parse/expr/bad-try-multiple-catch.txt:22:7: error: unexpected token (, expected ). (catch ^ -out/test/parse/expr/bad-try-multiple-catch.txt:22:16: error: unexpected token ), expected EOF. +out/test/parse/expr/bad-try-multiple-catch.txt:23:16: error: unexpected token ), expected EOF. (nop)))) ^ ;;; STDERR ;;) |