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