summaryrefslogtreecommitdiff
path: root/test/wasm2js/excess_fallthrough.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/wasm2js/excess_fallthrough.wast')
-rw-r--r--test/wasm2js/excess_fallthrough.wast21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/wasm2js/excess_fallthrough.wast b/test/wasm2js/excess_fallthrough.wast
new file mode 100644
index 000000000..a31ba88f3
--- /dev/null
+++ b/test/wasm2js/excess_fallthrough.wast
@@ -0,0 +1,21 @@
+(module
+ (export "foo" (func $foo))
+ (func $bar)
+ (func $foo (param $0 i32)
+ (loop $label$4
+ (block $label$5
+ (call $bar)
+ (block
+ (block $label$7
+ (br_table $label$7 $label$5
+ (i32.const 123)
+ )
+ )
+ (call $bar)
+ )
+ (return)
+ )
+ (unreachable)
+ )
+ )
+)