summaryrefslogtreecommitdiff
path: root/test/parse/expr/try-table.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/parse/expr/try-table.txt')
-rw-r--r--test/parse/expr/try-table.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/parse/expr/try-table.txt b/test/parse/expr/try-table.txt
new file mode 100644
index 00000000..ee5b4b2c
--- /dev/null
+++ b/test/parse/expr/try-table.txt
@@ -0,0 +1,21 @@
+;;; TOOL: wat2wasm
+;;; ARGS: --enable-exceptions
+(module
+ (tag $e1 (param i32))
+ (tag $e2 (param i32 i32))
+
+ (func $func
+ block $a
+ block $b (result i32)
+ block $c (result i32 i32)
+ try_table (catch $e1 $b) (catch $e2 $c) (catch_all $a)
+ nop
+ end
+ i32.const 0
+ i32.const 0
+ end
+ drop
+ end
+ drop
+ end)
+)