diff options
Diffstat (limited to 'testsuite/tests/ghc-e/should_run/ghc-e005.hs')
-rw-r--r-- | testsuite/tests/ghc-e/should_run/ghc-e005.hs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/ghc-e/should_run/ghc-e005.hs b/testsuite/tests/ghc-e/should_run/ghc-e005.hs new file mode 100644 index 0000000000..4899706d77 --- /dev/null +++ b/testsuite/tests/ghc-e/should_run/ghc-e005.hs @@ -0,0 +1,13 @@ + +import System.Environment +import System.IO + +main :: IO () +main = error "main got called" + +foo :: IO () +foo = do putStrLn "This is foo" + getArgs >>= print + hFlush stdout + error "foo" + |