Test Trac #5745
authorSimon Peyton Jones <simonpj@microsoft.com>
Mon, 16 Jan 2012 15:43:03 +0000 (15:43 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Mon, 16 Jan 2012 15:43:03 +0000 (15:43 +0000)
testsuite/tests/rename/should_fail/T5745.hs [new file with mode: 0644]
testsuite/tests/rename/should_fail/T5745.stderr [new file with mode: 0644]
testsuite/tests/rename/should_fail/T5745a.hs [new file with mode: 0644]
testsuite/tests/rename/should_fail/T5745b.hs [new file with mode: 0644]
testsuite/tests/rename/should_fail/all.T

diff --git a/testsuite/tests/rename/should_fail/T5745.hs b/testsuite/tests/rename/should_fail/T5745.hs
new file mode 100644 (file)
index 0000000..22fafc6
--- /dev/null
@@ -0,0 +1,6 @@
+module T5745 where
+
+import T5745a
+
+f :: T
+f = f
diff --git a/testsuite/tests/rename/should_fail/T5745.stderr b/testsuite/tests/rename/should_fail/T5745.stderr
new file mode 100644 (file)
index 0000000..44994c9
--- /dev/null
@@ -0,0 +1,2 @@
+
+T5745.hs:5:6: Not in scope: type constructor or class `T'
diff --git a/testsuite/tests/rename/should_fail/T5745a.hs b/testsuite/tests/rename/should_fail/T5745a.hs
new file mode 100644 (file)
index 0000000..b3d52bc
--- /dev/null
@@ -0,0 +1,3 @@
+module T5745a( module T5745b ) where
+
+import T5745b hiding( T )
diff --git a/testsuite/tests/rename/should_fail/T5745b.hs b/testsuite/tests/rename/should_fail/T5745b.hs
new file mode 100644 (file)
index 0000000..74390a6
--- /dev/null
@@ -0,0 +1,4 @@
+module T5745b where
+
+data T = MkT
+data S = MkS
index 1776777..c0e4f54 100644 (file)
@@ -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'])