summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci/scripts/T5557.script
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2011-10-21 17:26:20 +0100
committerSimon Peyton Jones <simonpj@microsoft.com>2011-10-21 17:26:20 +0100
commit13b8cc9116aa2f210c3b9766e606cfe0222c3459 (patch)
tree59aaa920b011c9e96d88fdcd2a11cbf2bdb6fb4c /testsuite/tests/ghci/scripts/T5557.script
parentdcd2f02edb76bcefd8ba4d0c22eea5c72dbf1506 (diff)
downloadhaskell-13b8cc9116aa2f210c3b9766e606cfe0222c3459.tar.gz
Test Trac #5557
Diffstat (limited to 'testsuite/tests/ghci/scripts/T5557.script')
-rw-r--r--testsuite/tests/ghci/scripts/T5557.script4
1 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/tests/ghci/scripts/T5557.script b/testsuite/tests/ghci/scripts/T5557.script
new file mode 100644
index 0000000000..5ff79a7993
--- /dev/null
+++ b/testsuite/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]
+