https://bugs.winehq.org/show_bug.cgi?id=33494
--- Comment #8 from Deve deveee@gmail.com --- This example probably didn't show anything on Windows because when you compile something as window application, then you don't get any output to console. It must be compiled as console application. On Linux it works slightly different and you still get output in terminal.
Anyway it was fixed somewhere in the past and that's important.