summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/passes/inlining_all-features.txt12
-rw-r--r--test/passes/inlining_all-features.wast11
2 files changed, 23 insertions, 0 deletions
diff --git a/test/passes/inlining_all-features.txt b/test/passes/inlining_all-features.txt
index 2141d3d34..e909239d2 100644
--- a/test/passes/inlining_all-features.txt
+++ b/test/passes/inlining_all-features.txt
@@ -59,3 +59,15 @@
)
)
)
+(module
+ (type $none_=>_none (func))
+ (start $0)
+ (func $0
+ (nop)
+ )
+ (func $1
+ (block $__inlined_func$0
+ (nop)
+ )
+ )
+)
diff --git a/test/passes/inlining_all-features.wast b/test/passes/inlining_all-features.wast
index f86ad8926..60093cb63 100644
--- a/test/passes/inlining_all-features.wast
+++ b/test/passes/inlining_all-features.wast
@@ -47,3 +47,14 @@
(call $0)
)
)
+(module
+ ;; a function reference in the start should be noticed, and prevent us
+ ;; from removing an inlined function
+ (start $0)
+ (func $0
+ (nop)
+ )
+ (func $1
+ (call $0)
+ )
+)