blob: edc1f48ff7a0c77db0b74a76b365ac07a27bac62 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
(module
(import "env" "tempDoublePtr" (global $tempDoublePtr i32))
(memory 256 256)
(data (i32.const 10) "waka waka waka waka waka")
;; imports must not be used
(export "test1" (func $test1))
(global $mine (mut i32) (global.get $tempDoublePtr)) ;; BAD, if used
(func $test1
(i32.store8 (i32.const 13) (i32.const 115)) ;; we never get here.
)
)
|