mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-09 21:26:21 +00:00
10 lines
268 B
Plaintext
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))
|
|
)
|
|
)
|