wasm-micro-runtime/tests/unit/gc/wasm-apps/struct3.wast
2024-06-04 11:24:27 +08:00

10 lines
268 B
Plaintext

(module
(type $t (struct (field i32 (mut i32))))
(func (export "struct.get-null")
(local (ref null $t)) (drop (struct.get $t 1 (local.get 0)))
)
(func (export "struct.set-null")
(local (ref null $t)) (struct.set $t 1 (local.get 0) (i32.const 0))
)
)