summaryrefslogtreecommitdiff
path: root/test/parse/expr/reference-types-named.txt
blob: d0131609ee2776aa3d511f2634222f9180e85e15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
;;; TOOL: wat2wasm

(module
  (table $foo 1 externref)
  (func (result externref)
    i32.const 0
    table.get $foo
  )
  (func (param externref)
    i32.const 0
    local.get 0
    table.set $foo
  )
  (func (result i32)
    ref.null extern
    i32.const 0
    table.grow $foo
  )
)