diff options
Diffstat (limited to 'test/mutable-global.wast')
-rw-r--r-- | test/mutable-global.wast | 12 |
1 files changed, 12 insertions, 0 deletions
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) + ) + ) + ) +) |