http://bugs.winehq.org/show_bug.cgi?id=24270
--- Comment #2 from Austin English austinenglish@gmail.com 2010-09-04 22:14:01 CDT --- using a winetest.exe from test.winehq.org: austin@midna:~/wine-git$ ./wine winetest-latest.exe -o foo kernel32:time ; tail foo Dll info: kernel32=5.1.2600.2180 Test output: kernel32:time start dlls/kernel32/tests/time.c - time.c:256: tz_id 2 (TIME_ZONE_ID_DAYLIGHT) time.c:264: bias 360, Central Standard Time - Central Daylight Time time.c:265: standard (d/m/y): 1/11/0000 day of week 0 2:00:00.000 bias 0 time.c:271: daylight (d/m/y): 2/03/0000 day of week 0 2:00:00.000 bias -60 time: 804 tests executed (0 marked as todo, 0 failures), 0 skipped. kernel32:time done (0)
so yeah, seems clang is mis-compiling it. I'm not sure that the code is correct though (probably is, but I don't know that code well enough to say). I'll probably file a clang bug soon-ish.