diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/passes/simplify-locals.txt | 12 | ||||
-rw-r--r-- | test/passes/simplify-locals.wast | 8 |
2 files changed, 20 insertions, 0 deletions
diff --git a/test/passes/simplify-locals.txt b/test/passes/simplify-locals.txt index 88c00dbe9..880639f79 100644 --- a/test/passes/simplify-locals.txt +++ b/test/passes/simplify-locals.txt @@ -240,5 +240,17 @@ ) (get_local $a) ) + (block $loopey + (set_local $a + (i32.const 1337) + ) + (loop $loop-out4 $loop-in5 + (get_local $a) + (set_local $a + (i32.const 9876) + ) + ) + (get_local $a) + ) ) ) diff --git a/test/passes/simplify-locals.wast b/test/passes/simplify-locals.wast index 5b1db2d12..db17c5533 100644 --- a/test/passes/simplify-locals.wast +++ b/test/passes/simplify-locals.wast @@ -136,6 +136,14 @@ ) (get_local $a) ) + (block $loopey + (set_local $a (i32.const 1337)) + (loop + (get_local $a) + (set_local $a (i32.const 9876)) + ) + (get_local $a) + ) ) ) |