summaryrefslogtreecommitdiff
path: root/test/passes/simplify-locals-nostructure.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/passes/simplify-locals-nostructure.wast')
-rw-r--r--test/passes/simplify-locals-nostructure.wast8
1 files changed, 8 insertions, 0 deletions
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)
+ )
+ )
+ )
)