summaryrefslogtreecommitdiff
path: root/test/roundtrip/generate-bulk-memory-names.txt
blob: 189ae928e508803250505d8652c521e958a871d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
;;; TOOL: run-roundtrip
;;; ARGS: --stdout --generate-names --enable-bulk-memory

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

  (table 1 anyfunc)
  (elem funcref 0)
  (func
    i32.const 0 i32.const 0 i32.const 0 table.init 0
    elem.drop 0
  )
)
(;; STDOUT ;;;
(module
  (type $t0 (func))
  (func $f0 (type $t0)
    i32.const 0
    i32.const 0
    i32.const 0
    memory.init $d0
    data.drop $d0)
  (func $f1 (type $t0)
    i32.const 0
    i32.const 0
    i32.const 0
    table.init $e0
    elem.drop $e0)
  (table $T0 1 funcref)
  (memory $M0 1)
  (elem $e0 funcref (ref.func $f0))
  (data $d0 "a"))
;;; STDOUT ;;)