These tests don't fail when only windows-dll is set in mingw mode, as the bug is specific to MSVC mode.
Split this one out from D112211, as this one is even clearer.
Rebase and rerun CI
Ping - the referenced bug is specific to msvc mode, so the xfail only relates to that environment.
Oh yeah, that bug is on me :(
I hope I'll have time to investigate it eventually, but in case someone wants to look into it, I'd be happy to assist by reviewing or providing context about the attribute.