diff options
Diffstat (limited to 'test/min.wast')
-rw-r--r-- | test/min.wast | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/min.wast b/test/min.wast index ceaf88725..f765b64e8 100644 --- a/test/min.wast +++ b/test/min.wast @@ -24,4 +24,26 @@ ) ) ) + (func $littleswitch (param $x i32) (result i32) + (block $topmost + (tableswitch $switch$0 + (i32.sub + (get_local $x) + (i32.const 1) + ) + (table (case $switch-case$1) (case $switch-case$2)) (case $switch-case$1) + (case $switch-case$1 + (br $topmost + (i32.const 1) + ) + ) + (case $switch-case$2 + (br $topmost + (i32.const 2) + ) + ) + ) + (i32.const 0) + ) + ) ) |