summaryrefslogtreecommitdiff
path: root/test/binary/bad-multiple-catch-all.txt
blob: fd443625958f2452cf7ea076508725629105237c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
;;; TOOL: run-gen-wasm-bad
;;; ARGS1: --enable-exceptions
;;; ARGS2: --enable-exceptions
magic
version
section(TYPE) { count[1] function params[0] results[0] }
section(FUNCTION) { count[1] type[0] }
section(CODE) {
  count[1]
  func {
    locals[0]
    try 0
    catch_all
    catch_all
    end
  }
}
(;; STDERR ;;;
error: only one catch_all allowed in try block
000001b: error: OnCatchAllExpr callback failed
error: only one catch_all allowed in try block
000001b: error: OnCatchAllExpr callback failed
;;; STDERR ;;)