summaryrefslogtreecommitdiff
path: root/test/stacky.wasm.fromBinary
blob: 6fd62302297ee2e117c55b23ba1396c8b33fd122 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
(module
 (type $0 (func (param i32 i32) (result i32)))
 (memory $0 256 256)
 (export "add" (func $0))
 (func $0 (; 0 ;) (type $0) (param $0 i32) (param $1 i32) (result i32)
  (local $2 i32)
  (i32.add
   (block (result i32)
    (local.set $2
     (local.get $0)
    )
    (local.set $0
     (i32.const 100)
    )
    (local.get $2)
   )
   (local.get $1)
  )
 )
)