mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-02 10:21:07 +00:00
We statically know which passive segments are actually used, so let's be sure to gc them!
28 lines
449 B
Plaintext
28 lines
449 B
Plaintext
(module
|
|
(memory 0 10)
|
|
|
|
(func $foo
|
|
i32.const 0
|
|
i32.const 0
|
|
i32.const 0
|
|
memory.init 0
|
|
)
|
|
|
|
(data passive "wut")
|
|
|
|
(start $foo)
|
|
)
|
|
|
|
;; STDOUT (update this section with `BLESS_TESTS=1` while running tests)
|
|
;; (module
|
|
;; (type (;0;) (func))
|
|
;; (func $foo (type 0)
|
|
;; i32.const 0
|
|
;; i32.const 0
|
|
;; i32.const 0
|
|
;; memory.init 0)
|
|
;; (memory (;0;) 0 10)
|
|
;; (start 0)
|
|
;; (data (;0;) passive "wut"))
|
|
;; STDOUT
|