diff options
Diffstat (limited to 'testsuite/tests/rts/derefnull.hs')
-rw-r--r-- | testsuite/tests/rts/derefnull.hs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/tests/rts/derefnull.hs b/testsuite/tests/rts/derefnull.hs new file mode 100644 index 0000000000..474ff62c4c --- /dev/null +++ b/testsuite/tests/rts/derefnull.hs @@ -0,0 +1,14 @@ + +{- +By default, on Windows a segfault will pop up an annoying dialog box. +We want the RTS to catch it instead. +-} + +module Main where + +import Foreign + +main :: IO () +main = do x <- peek nullPtr + print (x :: Int) + |