diff options
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/tests/ghci/scripts/T10501.script | 2 | ||||
-rw-r--r-- | testsuite/tests/ghci/scripts/T10501.stderr | 2 | ||||
-rwxr-xr-x | testsuite/tests/ghci/scripts/all.T | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/tests/ghci/scripts/T10501.script b/testsuite/tests/ghci/scripts/T10501.script new file mode 100644 index 0000000000..06e75ec251 --- /dev/null +++ b/testsuite/tests/ghci/scripts/T10501.script @@ -0,0 +1,2 @@ +:cmd return $ head [] +:cmd return ('1':'2':undefined) diff --git a/testsuite/tests/ghci/scripts/T10501.stderr b/testsuite/tests/ghci/scripts/T10501.stderr new file mode 100644 index 0000000000..6c3cc16efd --- /dev/null +++ b/testsuite/tests/ghci/scripts/T10501.stderr @@ -0,0 +1,2 @@ +*** Exception: Prelude.head: empty list +*** Exception: Prelude.undefined diff --git a/testsuite/tests/ghci/scripts/all.T b/testsuite/tests/ghci/scripts/all.T index a366c1f345..f0d7c192b1 100755 --- a/testsuite/tests/ghci/scripts/all.T +++ b/testsuite/tests/ghci/scripts/all.T @@ -218,3 +218,4 @@ test('T10248', normal, ghci_script, ['T10248.script']) test('T10110', normal, ghci_script, ['T10110.script']) test('T10322', normal, ghci_script, ['T10322.script']) test('T10466', normal, ghci_script, ['T10466.script']) +test('T10501', normal, ghci_script, ['T10501.script']) |