summaryrefslogtreecommitdiff
path: root/test/mutable-global.wast.from-wast
blob: e6f53240cee2bf3742119b57d23d8f6ef1cb26c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
(module
 (type $none_=>_none (func))
 (import "env" "global-mut" (global $global-mut (mut i32)))
 (func $foo
  (global.set $global-mut
   (i32.add
    (global.get $global-mut)
    (i32.const 1)
   )
  )
 )
)