summaryrefslogtreecommitdiff
path: root/testsuite/tests/lib/IO/openFile002.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/lib/IO/openFile002.hs')
-rw-r--r--testsuite/tests/lib/IO/openFile002.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/tests/lib/IO/openFile002.hs b/testsuite/tests/lib/IO/openFile002.hs
new file mode 100644
index 0000000000..83822621f6
--- /dev/null
+++ b/testsuite/tests/lib/IO/openFile002.hs
@@ -0,0 +1,6 @@
+import Data.Char
+import System.IO
+
+-- !!! Open a non-existent file for reading (should fail)
+
+main = openFile "nonexistent" ReadMode