summaryrefslogtreecommitdiff
path: root/test/passes/safe-heap_start-function.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/passes/safe-heap_start-function.wast')
-rw-r--r--test/passes/safe-heap_start-function.wast7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/passes/safe-heap_start-function.wast b/test/passes/safe-heap_start-function.wast
index 7fc2d5201..ae6525c68 100644
--- a/test/passes/safe-heap_start-function.wast
+++ b/test/passes/safe-heap_start-function.wast
@@ -6,8 +6,13 @@
(call $foo)
)
(func $foo
- ;; should not be modified because its called from the start function
+ ;; should not be modified because its reachable from start function
(i32.store (i32.load (i32.const 1234)) (i32.const 5678))
+ (call $foo2)
+ )
+ (func $foo2
+ ;; should not be modified because its reachable from start function
+ (i32.store (i32.load (i32.const 98)) (i32.const 99))
)
(func $bar
(i32.store (i32.load (i32.const 1234)) (i32.const 5678))