summaryrefslogtreecommitdiff
path: root/test/passes/flatten_local-cse_all-features.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/passes/flatten_local-cse_all-features.txt')
-rw-r--r--test/passes/flatten_local-cse_all-features.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/passes/flatten_local-cse_all-features.txt b/test/passes/flatten_local-cse_all-features.txt
index 0697e27a5..fc2dff3aa 100644
--- a/test/passes/flatten_local-cse_all-features.txt
+++ b/test/passes/flatten_local-cse_all-features.txt
@@ -762,6 +762,7 @@
)
)
(module
+ (type $none_=>_none (func))
(type $none_=>_funcref (func (result funcref)))
(func $subtype-test (; 0 ;) (result funcref)
(local $0 nullref)
@@ -789,4 +790,23 @@
(local.get $2)
)
)
+ (func $test (; 1 ;)
+ (local $0 anyref)
+ (local $1 nullref)
+ (local $2 nullref)
+ (block $label$1
+ (local.set $0
+ (ref.null)
+ )
+ (local.set $1
+ (ref.null)
+ )
+ )
+ (local.set $2
+ (local.get $1)
+ )
+ (drop
+ (local.get $1)
+ )
+ )
)