summaryrefslogtreecommitdiff
path: root/test/passes/optimize-instructions_all-features.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/passes/optimize-instructions_all-features.wast')
-rw-r--r--test/passes/optimize-instructions_all-features.wast10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/passes/optimize-instructions_all-features.wast b/test/passes/optimize-instructions_all-features.wast
index 9efd94c22..3b25238c0 100644
--- a/test/passes/optimize-instructions_all-features.wast
+++ b/test/passes/optimize-instructions_all-features.wast
@@ -6162,3 +6162,13 @@
)
)
)
+;; typed function references
+(module
+ (type $i32-i32 (func (param i32) (result i32)))
+ ;; this function has a reference parameter. we analyze parameters, and should
+ ;; not be confused by a type that has no bit size, in particular. this test
+ ;; just verifies that we do not crash on that.
+ (func $call_from-param (param $f (ref null $i32-i32)) (result i32)
+ (unreachable)
+ )
+)