diff options
Diffstat (limited to 'test/parse/expr/try-multi.txt')
-rw-r--r-- | test/parse/expr/try-multi.txt | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/parse/expr/try-multi.txt b/test/parse/expr/try-multi.txt new file mode 100644 index 00000000..7b020c4d --- /dev/null +++ b/test/parse/expr/try-multi.txt @@ -0,0 +1,26 @@ +;;; TOOL: wat2wasm +;;; ARGS: --enable-exceptions --enable-multi-value +(module + ;; try w/ multiple results + (func + try (result f32 f32) + f32.const 0 + f32.const 1 + catch + drop + f32.const 2 + f32.const 3 + end + return) + + ;; try w/ params + (func + i32.const 0 + try (param i32) (result i32) + i32.eqz + catch + drop ;; no i32 param, just except_ref + i32.const 0 + end + return) +) |