diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/mutable-global.wasm | bin | 0 -> 52 bytes | |||
-rw-r--r-- | test/mutable-global.wasm.fromBinary | 13 | ||||
-rw-r--r-- | test/mutable-global.wast | 12 | ||||
-rw-r--r-- | test/mutable-global.wast.from-wast | 12 | ||||
-rw-r--r-- | test/mutable-global.wast.fromBinary | 13 | ||||
-rw-r--r-- | test/mutable-global.wast.fromBinary.noDebugInfo | 13 |
6 files changed, 63 insertions, 0 deletions
diff --git a/test/mutable-global.wasm b/test/mutable-global.wasm Binary files differnew file mode 100644 index 000000000..537a596fd --- /dev/null +++ b/test/mutable-global.wasm diff --git a/test/mutable-global.wasm.fromBinary b/test/mutable-global.wasm.fromBinary new file mode 100644 index 000000000..aba18cdc4 --- /dev/null +++ b/test/mutable-global.wasm.fromBinary @@ -0,0 +1,13 @@ +(module + (type $0 (func)) + (import "env" "global-mut" (global $gimport$0 (mut i32))) + (func $0 (; 0 ;) (type $0) + (set_global $gimport$0 + (i32.add + (get_global $gimport$0) + (i32.const 1) + ) + ) + ) +) + diff --git a/test/mutable-global.wast b/test/mutable-global.wast new file mode 100644 index 000000000..71d333b17 --- /dev/null +++ b/test/mutable-global.wast @@ -0,0 +1,12 @@ +(module + (type $0 (func)) + (import "env" "global-mut" (global $global-mut (mut i32))) + (func $foo (type $0) + (set_global $global-mut + (i32.add + (get_global $global-mut) + (i32.const 1) + ) + ) + ) +) diff --git a/test/mutable-global.wast.from-wast b/test/mutable-global.wast.from-wast new file mode 100644 index 000000000..f12fb3fa4 --- /dev/null +++ b/test/mutable-global.wast.from-wast @@ -0,0 +1,12 @@ +(module + (type $0 (func)) + (import "env" "global-mut" (global $global-mut (mut i32))) + (func $foo (; 0 ;) (type $0) + (set_global $global-mut + (i32.add + (get_global $global-mut) + (i32.const 1) + ) + ) + ) +) diff --git a/test/mutable-global.wast.fromBinary b/test/mutable-global.wast.fromBinary new file mode 100644 index 000000000..3273575ef --- /dev/null +++ b/test/mutable-global.wast.fromBinary @@ -0,0 +1,13 @@ +(module + (type $0 (func)) + (import "env" "global-mut" (global $gimport$0 (mut i32))) + (func $foo (; 0 ;) (type $0) + (set_global $gimport$0 + (i32.add + (get_global $gimport$0) + (i32.const 1) + ) + ) + ) +) + diff --git a/test/mutable-global.wast.fromBinary.noDebugInfo b/test/mutable-global.wast.fromBinary.noDebugInfo new file mode 100644 index 000000000..aba18cdc4 --- /dev/null +++ b/test/mutable-global.wast.fromBinary.noDebugInfo @@ -0,0 +1,13 @@ +(module + (type $0 (func)) + (import "env" "global-mut" (global $gimport$0 (mut i32))) + (func $0 (; 0 ;) (type $0) + (set_global $gimport$0 + (i32.add + (get_global $gimport$0) + (i32.const 1) + ) + ) + ) +) + |