diff options
Diffstat (limited to 'test/parse/expr/bad-try-sig-multi.txt')
-rw-r--r-- | test/parse/expr/bad-try-sig-multi.txt | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/parse/expr/bad-try-sig-multi.txt b/test/parse/expr/bad-try-sig-multi.txt new file mode 100644 index 00000000..82f2323f --- /dev/null +++ b/test/parse/expr/bad-try-sig-multi.txt @@ -0,0 +1,31 @@ +;;; TOOL: wat2wasm +;;; ARGS: --enable-exceptions +;;; ERROR: 1 +(module + (func + try (result i32 i32) + i32.const 1 + i32.const 2 + catch + drop ;; drop except_ref + i32.const 3 + i32.const 4 + end + return) + + (func + i32.const 0 + try (param i32) + drop + catch + drop ;; drop except_ref + end + return)) +(;; STDERR ;;; +out/test/parse/expr/bad-try-sig-multi.txt:6:5: error: multiple try results not currently supported. + try (result i32 i32) + ^^^ +out/test/parse/expr/bad-try-sig-multi.txt:18:5: error: try params not currently supported. + try (param i32) + ^^^ +;;; STDERR ;;) |