diff options
Diffstat (limited to 'testsuite/tests/lib/should_run/addr001.hs')
-rw-r--r-- | testsuite/tests/lib/should_run/addr001.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/lib/should_run/addr001.hs b/testsuite/tests/lib/should_run/addr001.hs new file mode 100644 index 0000000000..436a066063 --- /dev/null +++ b/testsuite/tests/lib/should_run/addr001.hs @@ -0,0 +1,10 @@ +-- !!! Testing that Show for Addr is OK.. +module Main(main) where + +import Foreign.Ptr + +main :: IO () +main = do + print (nullPtr `plusPtr` maxBound) + print (nullPtr `plusPtr` minBound) + |