https://bugs.winehq.org/show_bug.cgi?id=56101
--- Comment #7 from Nikolay Sivov bunglehead@gmail.com --- I think obj-pascal might be using something else by default that's neither stdcall nor cdecl, so yes, if only to verify it makes sense to rebuild the test program itself.
Is it possible this path is never taken on normal execution, on Windows, or on with native dbghelp, for whatever reason?