diff options
Diffstat (limited to 'test/wasm2js/br_table_to_loop.wast')
-rw-r--r-- | test/wasm2js/br_table_to_loop.wast | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/wasm2js/br_table_to_loop.wast b/test/wasm2js/br_table_to_loop.wast index 83d3702c2..a74d5ffe0 100644 --- a/test/wasm2js/br_table_to_loop.wast +++ b/test/wasm2js/br_table_to_loop.wast @@ -1,6 +1,8 @@ (module (func "exp1" (block $block + ;; An infinite loop. When optimizing, wasm2js enables ignore-implicit-traps + ;; and so it can simplify this. (loop $loop (br_table $block $loop $block (i32.const 1)) ) @@ -8,6 +10,7 @@ ) (func "exp2" (block $block + ;; A loop that never executes. This can be optimized into a nop. (loop $loop (br_table $loop $block $loop (i32.const 1)) ) |