https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119765
Peter Damianov <peter0x44 at disroot dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |peter0x44 at disroot dot org --- Comment #5 from Peter Damianov <peter0x44 at disroot dot org> --- putting __attribute__((__sysv_abi__)) on foo should make this test pass even on x86_64-w64-mingw32. https://gcc.godbolt.org/z/dr8ae4r6c I couldn't run the testsuite, but just purely judging from the assembly here it looks okay. As a basic fix that would work, but extending the test to cover msabi (assuming there aren't any existing ones) would also be a good idea.