blob: 1fcf771c20505c543a44b8705900e515091c9b34 [file] [edit]
(module
(type $0 (struct (field (mut i32))))
(type $1 (func (result i32)))
(global $global$0 (ref null $0) (struct.new_default $0))
(export "use-global" (func $0))
(func $0 (result i32)
(struct.set $0 0
(global.get $global$0)
(i32.const 42)
)
(struct.get $0 0
(global.get $global$0)
)
)
)