summaryrefslogtreecommitdiff
path: root/test/anyref.wast.fromBinary
blob: 3d9b223b6b4ed1b3fb5b83d052e77ba33f7a5936 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
(module
 (type $0 (func (param anyref) (result anyref)))
 (import "env" "test2" (global $gimport$1 anyref))
 (import "env" "test1" (func $test1 (param anyref) (result anyref)))
 (memory $0 1 1)
 (export "test1" (func $test1))
 (export "test2" (global $gimport$1))
 (func $anyref_test (; 1 ;) (type $0) (param $0 anyref) (result anyref)
  (local $1 anyref)
  (local.set $1
   (call $test1
    (local.get $0)
   )
  )
  (return
   (local.get $1)
  )
 )
)