summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/passes/precompute_all-features.txt10
-rw-r--r--test/passes/precompute_all-features.wast15
2 files changed, 25 insertions, 0 deletions
diff --git a/test/passes/precompute_all-features.txt b/test/passes/precompute_all-features.txt
index 9c7f4eab1..4253d3c42 100644
--- a/test/passes/precompute_all-features.txt
+++ b/test/passes/precompute_all-features.txt
@@ -10,6 +10,7 @@
(data (i32.const 0) "passive")
(global $global i32 (i32.const 1))
(global $global-mut (mut i32) (i32.const 2))
+ (event $event$0 (attr 0) (param))
(func $x (param $x i32)
(call $x
(i32.const 2300)
@@ -314,4 +315,13 @@
)
)
)
+ (func $unreachable-br_on_exn
+ (block $label$1
+ (drop
+ (loop $label$2
+ (br $label$2)
+ )
+ )
+ )
+ )
)
diff --git a/test/passes/precompute_all-features.wast b/test/passes/precompute_all-features.wast
index bbe984704..343b01ff1 100644
--- a/test/passes/precompute_all-features.wast
+++ b/test/passes/precompute_all-features.wast
@@ -461,4 +461,19 @@
)
)
)
+
+ ;; br_on_exn's argument becomes unreachable, so br_on_exn itself is replaced
+ ;; with its argument in ReFinalize process after precompute.
+ (event $event$0 (attr 0) (param))
+ (func $unreachable-br_on_exn
+ (block $label$1
+ (drop
+ (br_on_exn $label$1 $event$0
+ (loop $label$2 (result nullref)
+ (br $label$2)
+ )
+ )
+ )
+ )
+ )
)