Files
wamr/samples/wasm-c-api/src/globalexportimport-0.wat
lum1n0us 4787b150b8 Enable multi-module support for wasm-c-api (#426)
it is allowed that all imported functions and globals can be
linked by multi-module feature automatically or by wasm-c-api manually
2020-10-16 17:43:57 +08:00

6 lines
255 B
Plaintext

(module
(global $mut_f32_export (export "var f32") (mut f32) (f32.const 7))
(func (export "get var f32 export") (result f32) (global.get $mut_f32_export))
(func (export "set var f32 export") (param f32) (global.set $mut_f32_export (local.get 0)))
)