diff options
Diffstat (limited to 'libraries/base/tests')
-rw-r--r-- | libraries/base/tests/T9681.hs | 3 | ||||
-rw-r--r-- | libraries/base/tests/T9681.stderr | 5 | ||||
-rw-r--r-- | libraries/base/tests/all.T | 1 |
3 files changed, 9 insertions, 0 deletions
diff --git a/libraries/base/tests/T9681.hs b/libraries/base/tests/T9681.hs new file mode 100644 index 0000000000..b0fd499780 --- /dev/null +++ b/libraries/base/tests/T9681.hs @@ -0,0 +1,3 @@ +module T9681 where + +foo = 1 + "\n" diff --git a/libraries/base/tests/T9681.stderr b/libraries/base/tests/T9681.stderr new file mode 100644 index 0000000000..7945ff7353 --- /dev/null +++ b/libraries/base/tests/T9681.stderr @@ -0,0 +1,5 @@ + +T9681.hs:3:9: + No instance for (Num [Char]) arising from a use of ‘+’ + In the expression: 1 + "\n" + In an equation for ‘foo’: foo = 1 + "\n" diff --git a/libraries/base/tests/all.T b/libraries/base/tests/all.T index edb5fc3b16..ee0fb6b708 100644 --- a/libraries/base/tests/all.T +++ b/libraries/base/tests/all.T @@ -173,3 +173,4 @@ test('T9111', normal, compile, ['']) test('T9395', normal, compile_and_run, ['']) test('T9532', normal, compile_and_run, ['']) test('T9586', normal, compile, ['']) +test('T9681', normal, compile_fail, ['']) |