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

(module
  (memory 1)
  (data $data "a")
  (func
    i32.const 0 i32.const 0 i32.const 0 memory.init $data
    data.drop $data
  )

  (table 1 anyfunc)
  (elem $elem funcref (ref.func 0) (ref.null))
  (elem $elem2 func 0)
  (func
    i32.const 0 i32.const 0 i32.const 0 table.init $elem
    elem.drop $elem
  )
)