tests/cli/br_if-loop-unreachable.wast
raw| 1 | ;; RUN: wast --assert default --snapshot tests/snapshots % |
| 2 | |
| 3 | ;;; --enable-multi-value |
| 4 | (module |
| 5 | (type (;0;) (func)) |
| 6 | (type (;1;) (func (result f64 i32))) |
| 7 | (func (;0;) (type 1) (result f64 i32) |
| 8 | loop (result f64 i32) ;; label = @1 |
| 9 | br 0 (;@1;) |
| 10 | call 0 |
| 11 | br_if 0 (;@1;) |
| 12 | i32.trunc_f64_u |
| 13 | unreachable |
| 14 | end |
| 15 | unreachable) |
| 16 | ) |