Looking at this a bit closer, apparently inline functions do not get inlined, so linking fails. The host compiler is allowed to not inline inline functions, so the test failing is fine.
But why does it make a difference for snapshots vs. non-snapshot?