diff options
Diffstat (limited to 'testsuite/tests/rts/divbyzero.hs')
-rw-r--r-- | testsuite/tests/rts/divbyzero.hs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/rts/divbyzero.hs b/testsuite/tests/rts/divbyzero.hs new file mode 100644 index 0000000000..0cf82bbae5 --- /dev/null +++ b/testsuite/tests/rts/divbyzero.hs @@ -0,0 +1,13 @@ + +{- +By default, on Windows a division-by-zero will pop up an annoying dialog box. +We want the RTS to catch it instead. +-} + +module Main where + +import GHC.Base + +main :: IO () +main = print (5 `divInt` 0) + |