summaryrefslogtreecommitdiff
path: root/test/parse/expr/bad-try-delegate.txt
blob: 18e44e618695bb19633de164ef5b89c8350fbc5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
;;; TOOL: wat2wasm
;;; ARGS: --enable-exceptions
;;; ERROR: 1
(module
  (func try nop delegate)
  (func try nop delegate 0 end)
)
(;; STDERR ;;;
out/test/parse/expr/bad-try-delegate.txt:5:25: error: unexpected token ")", expected a numeric index or a name (e.g. 12 or $foo).
  (func try nop delegate)
                        ^
out/test/parse/expr/bad-try-delegate.txt:6:28: error: unexpected token end, expected ).
  (func try nop delegate 0 end)
                           ^^^
;;; STDERR ;;)