summaryrefslogtreecommitdiff
path: root/testsuite/tests/driver/T20348/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/driver/T20348/Makefile')
-rw-r--r--testsuite/tests/driver/T20348/Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/testsuite/tests/driver/T20348/Makefile b/testsuite/tests/driver/T20348/Makefile
index e6903e4cc4..ba1edd021d 100644
--- a/testsuite/tests/driver/T20348/Makefile
+++ b/testsuite/tests/driver/T20348/Makefile
@@ -24,3 +24,38 @@ T20348: clean
# Second run: should not recompile.
echo 'second run'
'$(TEST_HC)' $(TEST_HC_OPTS) -fno-code -fwrite-interface A.hs
+
+T20348A: clean
+ '$(TEST_HC)' $(TEST_HC_OPTS) -c -o A2.o -ohi A2.hi -dynohi A2.dyn_hi A.hs -dynamic-too
+ $(call checkExists,A2.hi)
+ $(call checkExists,A2.o)
+ $(call checkExists,A2.dyn_hi)
+ $(call checkExists,A2.dyn_o)
+
+T20348B: clean
+ '$(TEST_HC)' $(TEST_HC_OPTS) -c -o A2.o -ohi A2.hi A.hs -dynamic-too
+ $(call checkExists,A2.hi)
+ $(call checkExists,A2.o)
+ $(call checkExists,A.dyn_hi)
+ $(call checkExists,A2.dyn_o)
+
+T20348C: clean
+ '$(TEST_HC)' $(TEST_HC_OPTS) -c -o A2.o -dyno A2.dyn_o A.hs -dynamic-too
+ $(call checkExists,A.hi)
+ $(call checkExists,A2.o)
+ $(call checkExists,A.dyn_hi)
+ $(call checkExists,A2.dyn_o)
+
+T20348D: clean
+ '$(TEST_HC)' $(TEST_HC_OPTS) -c -dyno A2.dyn_o A.hs -dynamic-too
+ $(call checkExists,A.hi)
+ $(call checkExists,A.o)
+ $(call checkExists,A.dyn_hi)
+ $(call checkExists,A2.dyn_o)
+
+T20348E: clean
+ '$(TEST_HC)' $(TEST_HC_OPTS) -S -o A2.s A.hs -dynamic-too
+ $(call checkExists,A2.s)
+ $(call checkExists,A2.dyn_s)
+
+