gc: Add regression test


4c1054b0f997f2977a54d42523856805b309db9a fixed the interaction between
the JIT and the gc, but didn't have any test case.

We can adjust the reproducer from QTBUG-151325 to act as a regression
test.

Task-number: QTBUG-151325
Change-Id: Ia80b31a74c919c454a6a6faf0aa6444770edd68a
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
commit3459ad1d349a3a49c6ee3798d430149c6fafc270
parent4d68f6bdccdfe0abe00be8ac1780c31e901211d3
authorFabian Kosmale <fabian.kosmale@qt.io>
committerFabian Kosmale <fabian.kosmale@qt.io>
commit timeWed, 14 Oct 2026 11:14:00 +0000