blob: fbd6fd8624bc44eff8f601d53d7c492b01eb994f (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
;;; TOOL: wat2wasm
;;; ARGS*: --disable-reference-types --disable-bulk-memory
;;; ERROR: 1
(module
(memory 1)
(data $data "a")
(func
i32.const 0 i32.const 0 i32.const 0 memory.init 0
data.drop 0
i32.const 0 i32.const 0 i32.const 0 memory.copy
i32.const 0 i32.const 0 i32.const 0 memory.fill
)
(table 1 funcref)
(elem $elem funcref 0)
(elem funcref (ref.null func))
(func
i32.const 0 i32.const 0 i32.const 0 table.init 0
elem.drop 0
i32.const 0 i32.const 0 i32.const 0 table.copy
)
)
(;; STDERR ;;;
out/test/parse/expr/bulk-memory-disabled.txt:7:4: error: passive data segments are not allowed
(data $data "a")
^^^^
out/test/parse/expr/bulk-memory-disabled.txt:9:41: error: opcode not allowed: memory.init
i32.const 0 i32.const 0 i32.const 0 memory.init 0
^^^^^^^^^^^
out/test/parse/expr/bulk-memory-disabled.txt:10:5: error: opcode not allowed: data.drop
data.drop 0
^^^^^^^^^
out/test/parse/expr/bulk-memory-disabled.txt:11:41: error: opcode not allowed: memory.copy
i32.const 0 i32.const 0 i32.const 0 memory.copy
^^^^^^^^^^^
out/test/parse/expr/bulk-memory-disabled.txt:12:41: error: opcode not allowed: memory.fill
i32.const 0 i32.const 0 i32.const 0 memory.fill
^^^^^^^^^^^
out/test/parse/expr/bulk-memory-disabled.txt:16:15: error: unexpected token "funcref", expected an offset expr (e.g. (i32.const 123)).
(elem $elem funcref 0)
^^^^^^^
out/test/parse/expr/bulk-memory-disabled.txt:17:9: error: unexpected token "funcref", expected an offset expr (e.g. (i32.const 123)).
(elem funcref (ref.null func))
^^^^^^^
out/test/parse/expr/bulk-memory-disabled.txt:19:41: error: opcode not allowed: table.init
i32.const 0 i32.const 0 i32.const 0 table.init 0
^^^^^^^^^^
out/test/parse/expr/bulk-memory-disabled.txt:20:5: error: opcode not allowed: elem.drop
elem.drop 0
^^^^^^^^^
out/test/parse/expr/bulk-memory-disabled.txt:21:41: error: opcode not allowed: table.copy
i32.const 0 i32.const 0 i32.const 0 table.copy
^^^^^^^^^^
;;; STDERR ;;)
|