struct3.wast 268 B

123456789
  1. (module
  2. (type $t (struct (field i32 (mut i32))))
  3. (func (export "struct.get-null")
  4. (local (ref null $t)) (drop (struct.get $t 1 (local.get 0)))
  5. )
  6. (func (export "struct.set-null")
  7. (local (ref null $t)) (struct.set $t 1 (local.get 0) (i32.const 0))
  8. )
  9. )