wasm-micro-runtime/samples/wasm-c-api/src/globalexportimport-0.wat
Wenyong Huang 77c71e559a
Add wasm-c-api nested function calls sample (#652)
And enable to copy back the return value of wasm main function when calling wasm_application_execute_main, add license headers in wasm-c-api samples, fix several issues reported by klocwork.
2021-06-16 15:26:28 +08:00

9 lines
378 B
Plaintext

;; Copyright (C) 2019 Intel Corporation. All rights reserved.
;; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
(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)))
)