diff options
Diffstat (limited to 'testsuite/tests/rename/prog004')
-rw-r--r-- | testsuite/tests/rename/prog004/A.hs | 6 | ||||
-rw-r--r-- | testsuite/tests/rename/prog004/B.hs | 4 | ||||
-rw-r--r-- | testsuite/tests/rename/prog004/C.hs | 7 | ||||
-rw-r--r-- | testsuite/tests/rename/prog004/Makefile | 3 | ||||
-rw-r--r-- | testsuite/tests/rename/prog004/rename.prog004.stderr | 0 | ||||
-rw-r--r-- | testsuite/tests/rename/prog004/test.T | 4 |
6 files changed, 24 insertions, 0 deletions
diff --git a/testsuite/tests/rename/prog004/A.hs b/testsuite/tests/rename/prog004/A.hs new file mode 100644 index 0000000000..23fe5bb187 --- /dev/null +++ b/testsuite/tests/rename/prog004/A.hs @@ -0,0 +1,6 @@ +module A(foo, Bar(..)) where + +foo :: Bar +foo = MkBar 42 + +data Bar = MkBar Int diff --git a/testsuite/tests/rename/prog004/B.hs b/testsuite/tests/rename/prog004/B.hs new file mode 100644 index 0000000000..47d2903abb --- /dev/null +++ b/testsuite/tests/rename/prog004/B.hs @@ -0,0 +1,4 @@ +module B(module A) where + +import A hiding (Bar) +import A(Bar) diff --git a/testsuite/tests/rename/prog004/C.hs b/testsuite/tests/rename/prog004/C.hs new file mode 100644 index 0000000000..e66231afec --- /dev/null +++ b/testsuite/tests/rename/prog004/C.hs @@ -0,0 +1,7 @@ +module C where + +import B + +baz :: Bar +baz = foo + diff --git a/testsuite/tests/rename/prog004/Makefile b/testsuite/tests/rename/prog004/Makefile new file mode 100644 index 0000000000..9101fbd40a --- /dev/null +++ b/testsuite/tests/rename/prog004/Makefile @@ -0,0 +1,3 @@ +TOP=../../.. +include $(TOP)/mk/boilerplate.mk +include $(TOP)/mk/test.mk diff --git a/testsuite/tests/rename/prog004/rename.prog004.stderr b/testsuite/tests/rename/prog004/rename.prog004.stderr new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/testsuite/tests/rename/prog004/rename.prog004.stderr diff --git a/testsuite/tests/rename/prog004/test.T b/testsuite/tests/rename/prog004/test.T new file mode 100644 index 0000000000..4d97d580c0 --- /dev/null +++ b/testsuite/tests/rename/prog004/test.T @@ -0,0 +1,4 @@ +test('rename.prog004', + extra_clean(['A.hi', 'A.o', 'B.hi', 'B.o', 'C.hi', 'C.o']), + multimod_compile, + ['C', '-v0']) |