summaryrefslogtreecommitdiff
path: root/test/parse/expr
diff options
context:
space:
mode:
Diffstat (limited to 'test/parse/expr')
-rw-r--r--test/parse/expr/bad-try-multiple-catch.txt7
-rw-r--r--test/parse/expr/bad-try-no-catch.txt8
2 files changed, 8 insertions, 7 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 ;;)
diff --git a/test/parse/expr/bad-try-no-catch.txt b/test/parse/expr/bad-try-no-catch.txt
index 249e3b1d..ef0df92b 100644
--- a/test/parse/expr/bad-try-no-catch.txt
+++ b/test/parse/expr/bad-try-no-catch.txt
@@ -3,12 +3,12 @@
;;; ERROR: 1
(module
(func try nop end)
- (func (try nop)))
+ (func (try (do nop))))
(;; STDERR ;;;
out/test/parse/expr/bad-try-no-catch.txt:5:17: error: unexpected token end, expected catch.
(func try nop end)
^^^
-out/test/parse/expr/bad-try-no-catch.txt:6:17: error: unexpected token ), expected (.
- (func (try nop)))
- ^
+out/test/parse/expr/bad-try-no-catch.txt:6:22: error: unexpected token ), expected (.
+ (func (try (do nop))))
+ ^
;;; STDERR ;;)