summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/gc/regress-1830975.js
blob: 53bd663ce00db7be2a04597d980c4b952cc12974 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// |jit-test| skip-if: !wasmGcEnabled()

const { test } = wasmEvalText(`
  (module
    (type $f (func (result i32)))
    (func (export "test") (type $f)
      ref.null $f
      ref.test (ref null $f)
    )
  )
`).exports;
assertEq(test(), 1);