Commit f8e5da92 authored by Sylvain Henry's avatar Sylvain Henry Committed by Ben Gamari

testsuite: Add test for #14346

parent 6d2a9ec2
module Main where
import Control.Concurrent
import Control.Monad
import Data.Word
import Foreign.Marshal.Alloc
import Foreign.Storable
import Numeric
import GHC.Ptr
main :: IO ()
main = do
replicateM_ 49 $ threadDelay 1
_ <- forkIO $ do
allocaBytes 4 $ \p -> do
forever $ do
poke p (0xDEADBEEF :: Word32)
threadDelay 10
x <- peek p
unless (x == 0xDEADBEEF) $ putStrLn (showHex x "")
threadDelay 1000000
......@@ -171,3 +171,4 @@ test('T13825-unit',
['-package ghc'])
test('T14619', normal, compile_and_run, [''])
test('T14754', normal, compile_and_run, [''])
test('T14346', only_ways(['threaded1','threaded2']), compile_and_run, ['-O -threaded'])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment