summaryrefslogtreecommitdiff
path: root/test/parse/module/bad-table-too-many.txt
blob: b1ff24098287592244fa435d4c45910e3753e6f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
;;; TOOL: wat2wasm
;;; ARGS: --disable-reference-types
;;; ERROR: 1
(module
  (func (param i32))
  (table anyfunc (elem 0))
  (table anyfunc (elem 0)))
(;; STDERR ;;;
out/test/parse/module/bad-table-too-many.txt:7:4: error: only one table allowed
  (table anyfunc (elem 0)))
   ^^^^^
;;; STDERR ;;)