diff options
author | HE, Tao <sighingnow@gmail.com> | 2018-04-19 12:31:09 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2018-04-19 13:18:10 -0400 |
commit | cac8be611e7e80ed80e24b15faac9e1ac0a07247 (patch) | |
tree | 59e89e0ac78127be7516b81d3a4a872445cee9b5 /testsuite/tests/parser/should_fail/all.T | |
parent | f7f567d5003d15308bf5404301e29300b664e770 (diff) | |
download | haskell-cac8be611e7e80ed80e24b15faac9e1ac0a07247.tar.gz |
Better error message for empty character literal, for Trac #13450.
For empty character literal, the `''`, report error message properly
rather than just throw a "parser error" with wrong error location.
Test Plan: make test TEST="T13450 T13450TH"
Reviewers: goldfire, bgamari
Reviewed By: bgamari
Subscribers: thomie, mpickering, carter
GHC Trac Issues: #13450
Differential Revision: https://phabricator.haskell.org/D4594
Diffstat (limited to 'testsuite/tests/parser/should_fail/all.T')
-rw-r--r-- | testsuite/tests/parser/should_fail/all.T | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/testsuite/tests/parser/should_fail/all.T b/testsuite/tests/parser/should_fail/all.T index d47e0f5796..01075f2f15 100644 --- a/testsuite/tests/parser/should_fail/all.T +++ b/testsuite/tests/parser/should_fail/all.T @@ -106,6 +106,8 @@ test('T8501a', normal, compile_fail, ['']) test('T8501b', normal, compile_fail, ['']) test('T8501c', normal, compile_fail, ['']) test('T12610', normal, compile_fail, ['']) +test('T13450', normal, compile_fail, ['']) +test('T13450TH', normal, compile_fail, ['']) test('T14588', normal, compile_fail, ['']) test('T14740', normal, compile_fail, ['']) |