File: mutable-global.wast

package info (click to toggle)
binaryen 68-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 34,900 kB
  • sloc: cpp: 57,351; ansic: 3,562; python: 2,898; sh: 700; makefile: 6
file content (12 lines) | stat: -rw-r--r-- 229 bytes parent folder | download | duplicates (3)
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)
      )
    )
  )
)