[commit: testsuite] master: Test Trac #5745 (b68f2c9)
Simon Peyton Jones
simonpj at microsoft.com
Mon Jan 16 16:43:18 CET 2012
Repository : ssh://darcs.haskell.org//srv/darcs/testsuite
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/b68f2c94385507995f0a758a393faf601cefe483
>---------------------------------------------------------------
commit b68f2c94385507995f0a758a393faf601cefe483
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date: Mon Jan 16 15:43:03 2012 +0000
Test Trac #5745
>---------------------------------------------------------------
tests/rename/should_fail/T5745.hs | 6 ++++++
tests/rename/should_fail/T5745.stderr | 2 ++
tests/rename/should_fail/T5745a.hs | 3 +++
tests/rename/should_fail/T5745b.hs | 4 ++++
tests/rename/should_fail/all.T | 3 +++
5 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/tests/rename/should_fail/T5745.hs b/tests/rename/should_fail/T5745.hs
new file mode 100644
index 0000000..22fafc6
--- /dev/null
+++ b/tests/rename/should_fail/T5745.hs
@@ -0,0 +1,6 @@
+module T5745 where
+
+import T5745a
+
+f :: T
+f = f
diff --git a/tests/rename/should_fail/T5745.stderr b/tests/rename/should_fail/T5745.stderr
new file mode 100644
index 0000000..44994c9
--- /dev/null
+++ b/tests/rename/should_fail/T5745.stderr
@@ -0,0 +1,2 @@
+
+T5745.hs:5:6: Not in scope: type constructor or class `T'
diff --git a/tests/rename/should_fail/T5745a.hs b/tests/rename/should_fail/T5745a.hs
new file mode 100644
index 0000000..b3d52bc
--- /dev/null
+++ b/tests/rename/should_fail/T5745a.hs
@@ -0,0 +1,3 @@
+module T5745a( module T5745b ) where
+
+import T5745b hiding( T )
diff --git a/tests/rename/should_fail/T5745b.hs b/tests/rename/should_fail/T5745b.hs
new file mode 100644
index 0000000..74390a6
--- /dev/null
+++ b/tests/rename/should_fail/T5745b.hs
@@ -0,0 +1,4 @@
+module T5745b where
+
+data T = MkT
+data S = MkS
diff --git a/tests/rename/should_fail/all.T b/tests/rename/should_fail/all.T
index 1776777..c0e4f54 100644
--- a/tests/rename/should_fail/all.T
+++ b/tests/rename/should_fail/all.T
@@ -96,3 +96,6 @@ test('T5533', normal, compile_fail, [''])
test('T5589', normal, compile_fail, [''])
test('Misplaced', normal, compile_fail, [''])
test('T5657', normal, compile_fail, [''])
+test('T5745',
+ extra_clean(['T5745a.hi', 'T5745a.o', 'T5745b.hi', 'T5745b.o']),
+ multimod_compile_fail, ['T5745', '-v0'])
More information about the Cvs-ghc
mailing list