summaryrefslogtreecommitdiff
path: root/test/threads.wasm-only.fromasm.imprecise
diff options
context:
space:
mode:
Diffstat (limited to 'test/threads.wasm-only.fromasm.imprecise')
-rw-r--r--test/threads.wasm-only.fromasm.imprecise10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/threads.wasm-only.fromasm.imprecise b/test/threads.wasm-only.fromasm.imprecise
index ccbb5870f..2c6fa3f18 100644
--- a/test/threads.wasm-only.fromasm.imprecise
+++ b/test/threads.wasm-only.fromasm.imprecise
@@ -2,6 +2,8 @@
(import "env" "memory" (memory $0 (shared 256 256)))
(global $tempRet0 (mut i32) (i32.const 0))
(export "test64" (func $legalstub$test64))
+ (export "getTempRet0" (func $getTempRet0))
+ (export "setTempRet0" (func $setTempRet0))
(func $test64 (; 0 ;) (result i64)
(local $0 i64)
(local $1 i64)
@@ -63,4 +65,12 @@
(get_local $0)
)
)
+ (func $getTempRet0 (; 2 ;) (result i32)
+ (get_global $tempRet0)
+ )
+ (func $setTempRet0 (; 3 ;) (param $0 i32)
+ (set_global $tempRet0
+ (get_local $0)
+ )
+ )
)