tests/cli/br_if-loop-stack.wast
raw| 1 | ;; RUN: wast --assert default --snapshot tests/snapshots % |
| 2 | |
| 3 | (module |
| 4 | (type (;0;) (func (result i32))) |
| 5 | (func $main (type 0) (result i32) |
| 6 | block (result i32) ;; label = @1 |
| 7 | loop (result i32) ;; label = @2 |
| 8 | i32.const 77 |
| 9 | i32.const 0 |
| 10 | br_if 0 (;@2;) |
| 11 | br 1 (;@1;) |
| 12 | end |
| 13 | end |
| 14 | ) |
| 15 | (export "main" (func $main)) |
| 16 | ) |