summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/passes/simplify-locals-nostructure.txt6
-rw-r--r--test/passes/simplify-locals-nostructure.wast8
2 files changed, 14 insertions, 0 deletions
diff --git a/test/passes/simplify-locals-nostructure.txt b/test/passes/simplify-locals-nostructure.txt
index 2502c4549..6857a4c7a 100644
--- a/test/passes/simplify-locals-nostructure.txt
+++ b/test/passes/simplify-locals-nostructure.txt
@@ -62,4 +62,10 @@
(get_local $b)
)
)
+ (func $no-unreachable (type $0)
+ (local $x i32)
+ (drop
+ (unreachable)
+ )
+ )
)
diff --git a/test/passes/simplify-locals-nostructure.wast b/test/passes/simplify-locals-nostructure.wast
index 33f891e61..548109237 100644
--- a/test/passes/simplify-locals-nostructure.wast
+++ b/test/passes/simplify-locals-nostructure.wast
@@ -28,5 +28,13 @@
)
(drop (get_local $b))
)
+ (func $no-unreachable
+ (local $x i32)
+ (drop
+ (tee_local $x
+ (unreachable)
+ )
+ )
+ )
)