summaryrefslogtreecommitdiff
path: root/testsuite/tests/lib/IO/hIsEOF001.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/lib/IO/hIsEOF001.hs')
-rw-r--r--testsuite/tests/lib/IO/hIsEOF001.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/lib/IO/hIsEOF001.hs b/testsuite/tests/lib/IO/hIsEOF001.hs
new file mode 100644
index 0000000000..2e5dbdcb0a
--- /dev/null
+++ b/testsuite/tests/lib/IO/hIsEOF001.hs
@@ -0,0 +1,7 @@
+-- !!! hIsEOF (on stdout)
+
+import System.IO ( hIsEOF, stdout )
+
+main = do
+ flg <- hIsEOF stdout `catch` \ _ -> putStrLn "hIsEOF failed" >> return False
+ print flg