Repository : ssh://darcs.haskell.org//srv/darcs/testsuite

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/84e2075abcd49d26f3d6703b723c3818d919951c

>---------------------------------------------------------------

commit 84e2075abcd49d26f3d6703b723c3818d919951c
Author: Simon Peyton Jones <[email protected]>
Date:   Fri Oct 21 17:26:20 2011 +0100

    Test Trac #5557

>---------------------------------------------------------------

 tests/ghci/scripts/T5557.script |    4 ++++
 tests/ghci/scripts/T5557.stdout |    2 ++
 tests/ghci/scripts/all.T        |    1 +
 3 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/tests/ghci/scripts/T5557.script b/tests/ghci/scripts/T5557.script
new file mode 100644
index 0000000..5ff79a7
--- /dev/null
+++ b/tests/ghci/scripts/T5557.script
@@ -0,0 +1,4 @@
+-- Both should raise an exception
+([seq (seq undefined (\a -> error "a"))] !! 0) [1]
+([seq (seq undefined (\a -> undefined))] !! 0) [1]
+
diff --git a/tests/ghci/scripts/T5557.stdout b/tests/ghci/scripts/T5557.stdout
new file mode 100644
index 0000000..e8585c0
--- /dev/null
+++ b/tests/ghci/scripts/T5557.stdout
@@ -0,0 +1,2 @@
+*** Exception: Prelude.undefined
+*** Exception: Prelude.undefined
diff --git a/tests/ghci/scripts/all.T b/tests/ghci/scripts/all.T
index 72462d5..568109c 100644
--- a/tests/ghci/scripts/all.T
+++ b/tests/ghci/scripts/all.T
@@ -104,3 +104,4 @@ test('T5045', normal, ghci_script, ['T5045.script'])
 test('T5130', normal, ghci_script, ['T5130.script'])
 test('T5417', normal, ghci_script, ['T5417.script'])
 test('T5545', normal, ghci_script, ['T5545.script'])
+test('T5557', normal, ghci_script, ['T5557.script'])



_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to