summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/gc/bug-1845436.js
blob: 6ea8070f4d530aab0e7fadac6c6a322947109102 (plain)
1
2
3
4
5
6
7
8
9
10
// |jit-test| skip-if: !wasmGcEnabled(); --setpref=wasm_test_serialization=true

// Test that serialization doesn't create a forward reference to the third
// struct when serializing the reference to the first struct, which is
// structurally identical to the first struct.
wasmEvalText(`(module
  (type (;0;) (struct))
  (type (;2;) (struct (field (ref 0))))
  (type (;3;) (struct))
)`);