diff options
Diffstat (limited to 'testsuite/tests/lib/IO/IOError001.hs')
-rw-r--r-- | testsuite/tests/lib/IO/IOError001.hs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/lib/IO/IOError001.hs b/testsuite/tests/lib/IO/IOError001.hs new file mode 100644 index 0000000000..dee7f31e29 --- /dev/null +++ b/testsuite/tests/lib/IO/IOError001.hs @@ -0,0 +1,7 @@ + +-- test for a bug in GHC <= 4.08.2: handles were being left locked after +-- being shown in an error message. +main = do + getContents + catch getChar (\e -> print e >> return 'x') + catch getChar (\e -> print e >> return 'x') |