summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorAditya <adityadivekar03@gmail.com>2016-07-09 11:41:25 +0530
committerBen Gamari <ben@smart-cactus.org>2018-08-17 14:53:51 -0400
commit8f4df7f769e0e625922d6f63fa20bd038f3c0c3d (patch)
treec0fc30b8c37ee4d32af2b529c6115b4e45d30f89 /testsuite
parent1bbb5fa2f7c5eeb46afbba3301df68cccc8be6a3 (diff)
downloadhaskell-8f4df7f769e0e625922d6f63fa20bd038f3c0c3d.tar.gz
Add test cases for Ticket #12146.
Two tests - a ghci script and a compile fail test have been added.
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/tests/rename/should_fail/T12146.hs5
-rw-r--r--testsuite/tests/rename/should_fail/T12146.stderr4
-rw-r--r--testsuite/tests/rename/should_fail/all.T1
3 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/rename/should_fail/T12146.hs b/testsuite/tests/rename/should_fail/T12146.hs
new file mode 100644
index 0000000000..e44be13f04
--- /dev/null
+++ b/testsuite/tests/rename/should_fail/T12146.hs
@@ -0,0 +1,5 @@
+-- Test Trac #12146
+
+module T12146 where
+
+ipmort Data.Char
diff --git a/testsuite/tests/rename/should_fail/T12146.stderr b/testsuite/tests/rename/should_fail/T12146.stderr
new file mode 100644
index 0000000000..0dcd15470d
--- /dev/null
+++ b/testsuite/tests/rename/should_fail/T12146.stderr
@@ -0,0 +1,4 @@
+
+T12146.hs:5:1:
+ Parse error: module header, import declaration
+ or top-level declaration expected.
diff --git a/testsuite/tests/rename/should_fail/all.T b/testsuite/tests/rename/should_fail/all.T
index 413b24f7d2..f2bf30ea3f 100644
--- a/testsuite/tests/rename/should_fail/all.T
+++ b/testsuite/tests/rename/should_fail/all.T
@@ -119,6 +119,7 @@ test('T10781', normal, compile_fail, [''])
test('T11071', normal, compile_fail, [''])
test('T11071a', normal, compile_fail, [''])
test('T11663', normal, compile_fail, [''])
+test('T12146', normal, compile_fail, [''])
test('T12229', normal, compile, [''])
test('T12681', normal, multimod_compile_fail, ['T12681','-v0'])
test('T12686', normal, compile_fail, [''])