Skip to content
Snippets Groups Projects
Commit 58e84b30 authored by Ben Gamari's avatar Ben Gamari
Browse files

testsuite: Use safe FFI call in T5611

The original issue, #5611, was concerned with safe calls. However, the
test inexplicably used an unsafe call. Fix this.
parent e0899925
No related branches found
No related tags found
No related merge requests found
......@@ -4,12 +4,12 @@ import Control.Concurrent
import Foreign.C
import System.IO
#ifdef mingw32_HOST_OS
#if defined(mingw32_HOST_OS)
sleep n = sleepBlock (n*1000)
foreign import stdcall unsafe "Sleep" sleepBlock :: Int -> IO ()
foreign import stdcall safe "Sleep" sleepBlock :: Int -> IO ()
#else
sleep n = sleepBlock n
foreign import ccall unsafe "sleep" sleepBlock :: Int -> IO ()
foreign import ccall safe "sleep" sleepBlock :: Int -> IO ()
#endif
main :: IO ()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment