Ticket #2276 (closed merge: fixed)
foreign import stdcall "&foo" doesn't work
|Reported by:||simonmar||Owned by:||igloo|
|Type of failure:||Difficulty:||Unknown|
|Test Case:||Blocked By:|
Importing a label with the stdcall calling convention fails to remember the stdcall attribute and add the appropriate '@n' suffix to the label on Windows. e.g.
foreign import stdcall "&foo" foo :: FunPtr (CInt -> IO ())
should result in a reference to "foo@4", but doesn't. This breaks the Win32 library, which does something like this for genericWndProc in Graphics/Win32/Window.hsc.
Somewhat related to to #1288 .