summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/parse/expr/bad-try-multiple-catch.txt7
-rw-r--r--test/parse/expr/bad-try-no-catch.txt8
-rw-r--r--test/roundtrip/fold-br_on_exn.txt1
-rw-r--r--test/roundtrip/fold-rethrow.txt1
-rw-r--r--test/roundtrip/fold-try.txt5
5 files changed, 13 insertions, 9 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 ;;)
diff --git a/test/roundtrip/fold-br_on_exn.txt b/test/roundtrip/fold-br_on_exn.txt
index a641f80b..89c425bb 100644
--- a/test/roundtrip/fold-br_on_exn.txt
+++ b/test/roundtrip/fold-br_on_exn.txt
@@ -20,6 +20,7 @@
(drop
(block (result i32) ;; label = @1
(try ;; label = @2
+ (do)
(catch
(drop
(br_on_exn 1 (;@1;) 0))))
diff --git a/test/roundtrip/fold-rethrow.txt b/test/roundtrip/fold-rethrow.txt
index 3e7f46d4..bfddfcfe 100644
--- a/test/roundtrip/fold-rethrow.txt
+++ b/test/roundtrip/fold-rethrow.txt
@@ -16,6 +16,7 @@
(type (;1;) (func))
(func (;0;) (type 1)
(try ;; label = @1
+ (do)
(catch
(rethrow))))
(event (;0;) (type 0) (param i32)))
diff --git a/test/roundtrip/fold-try.txt b/test/roundtrip/fold-try.txt
index 1a241ff9..aa2f4531 100644
--- a/test/roundtrip/fold-try.txt
+++ b/test/roundtrip/fold-try.txt
@@ -16,8 +16,9 @@
(type (;0;) (func (result i32)))
(func (;0;) (type 0) (result i32)
(try (result i32) ;; label = @1
- (nop)
- (i32.const 7)
+ (do
+ (nop)
+ (i32.const 7))
(catch
(drop)
(i32.const 8)))))