summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/gc/bug-1845673.js
blob: e4f48f0769170f4efc0eb3f4e735526f821e8243 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// |jit-test| skip-if: !wasmGcEnabled()

let {f} = wasmEvalText(`(module
	(type (struct))
	(func (export "f") (result anyref)
		ref.null 0
		br_on_cast_fail 0 (ref null 0) (ref null 0)
		ref.null 0
		br_on_cast_fail 0 (ref null 0) (ref 0)
		br_on_cast_fail 0 (ref null 0) (ref null 0)
		unreachable
	)
)`).exports;
f();