summaryrefslogtreecommitdiff
path: root/testsuite/tests/cabal/pkg02/all.T
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/cabal/pkg02/all.T')
-rw-r--r--testsuite/tests/cabal/pkg02/all.T10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/cabal/pkg02/all.T b/testsuite/tests/cabal/pkg02/all.T
new file mode 100644
index 0000000000..b3dfecc0b5
--- /dev/null
+++ b/testsuite/tests/cabal/pkg02/all.T
@@ -0,0 +1,10 @@
+# This used to be a test for conflicting module names, but the error
+# case that it was testing for went away (conflicting module names in
+# separate packages are allowed). Now it is a straightforward test
+# for shadowing: the local Foreign module shadows the base package
+# one.
+test('pkg02',
+ [extra_clean(['A.o', 'A.hi', 'Foreign.o', 'Foreign.hi'])],
+ multimod_compile,
+ ['A','-v0'])
+