summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/passes/dae_all-features.txt10
-rw-r--r--test/passes/dae_all-features.wast11
2 files changed, 21 insertions, 0 deletions
diff --git a/test/passes/dae_all-features.txt b/test/passes/dae_all-features.txt
index ea439bc9e..773701396 100644
--- a/test/passes/dae_all-features.txt
+++ b/test/passes/dae_all-features.txt
@@ -312,3 +312,13 @@
)
)
)
+(module
+ (type $none_=>_none (func))
+ (func $0
+ (local $0 (ref null i31))
+ (nop)
+ )
+ (func $1
+ (call $0)
+ )
+)
diff --git a/test/passes/dae_all-features.wast b/test/passes/dae_all-features.wast
index 55e935f3b..67244cc23 100644
--- a/test/passes/dae_all-features.wast
+++ b/test/passes/dae_all-features.wast
@@ -193,3 +193,14 @@
)
)
)
+(module
+ ;; a removable non-nullable parameter
+ (func $0 (param $x i31ref)
+ (nop)
+ )
+ (func $1
+ (call $0
+ (i31.new (i32.const 0))
+ )
+ )
+)