diff options
Diffstat (limited to 'test/metadce/spanning_cycle.wast')
-rw-r--r-- | test/metadce/spanning_cycle.wast | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/metadce/spanning_cycle.wast b/test/metadce/spanning_cycle.wast index 83a1c786f..cfb74346a 100644 --- a/test/metadce/spanning_cycle.wast +++ b/test/metadce/spanning_cycle.wast @@ -1,10 +1,18 @@ (module + (memory 1 1) + (data passive "Hello, datacount section!") + (import "env" "js_func" (func $a_js_func)) (export "wasm_func_a" (func $a_wasm_func)) (func $a_wasm_func + ;; refer to the data segment to keep it around + (memory.init 0 + (i32.const 0) + (i32.const 0) + (i32.const 25) + ) (call $a_js_func) ) ) - |