diff options
Diffstat (limited to 'test/passes/safe-heap_start-function.wast')
-rw-r--r-- | test/passes/safe-heap_start-function.wast | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/passes/safe-heap_start-function.wast b/test/passes/safe-heap_start-function.wast new file mode 100644 index 000000000..ddc947f7e --- /dev/null +++ b/test/passes/safe-heap_start-function.wast @@ -0,0 +1,11 @@ +(module + (memory 1 1) + (func $foo + ;; should not be modified because its the start function + (i32.store (i32.load (i32.const 1234)) (i32.const 5678)) + ) + (func $bar + (i32.store (i32.load (i32.const 1234)) (i32.const 5678)) + ) + (start $foo) +) |