summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/regress/brtable-conditionblock-folding.js
blob: 6692a7473b2de9b7d176a434224c7a25e5517933 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
assertEq(wasmEvalText(`
(module
  (func $f (param $p i32)
    block $out
      i32.const 0
      if
        i32.const 1
        tee_local $p
        br_table $out $out
      end
    end
    local.get $p
    br_if 0
  )
  (export "f" (func $f))
)
`).exports.f(42), undefined);