summaryrefslogtreecommitdiff
path: root/test/wasm2js/br_table_to_loop.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/wasm2js/br_table_to_loop.wast')
-rw-r--r--test/wasm2js/br_table_to_loop.wast16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/wasm2js/br_table_to_loop.wast b/test/wasm2js/br_table_to_loop.wast
new file mode 100644
index 000000000..83d3702c2
--- /dev/null
+++ b/test/wasm2js/br_table_to_loop.wast
@@ -0,0 +1,16 @@
+(module
+ (func "exp1"
+ (block $block
+ (loop $loop
+ (br_table $block $loop $block (i32.const 1))
+ )
+ )
+ )
+ (func "exp2"
+ (block $block
+ (loop $loop
+ (br_table $loop $block $loop (i32.const 1))
+ )
+ )
+ )
+)