summaryrefslogtreecommitdiff
path: root/testsuite/tests/driver/T20436/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/driver/T20436/Makefile')
-rw-r--r--testsuite/tests/driver/T20436/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/testsuite/tests/driver/T20436/Makefile b/testsuite/tests/driver/T20436/Makefile
new file mode 100644
index 0000000000..de28eab08d
--- /dev/null
+++ b/testsuite/tests/driver/T20436/Makefile
@@ -0,0 +1,23 @@
+TOP=../../..
+include $(TOP)/mk/boilerplate.mk
+include $(TOP)/mk/test.mk
+
+# Test for passing -dynamic and -dynamic-too together
+
+checkExists = [ -f $1 ] || echo $1 missing
+checkNotExists = [ ! -f $1 ] || echo $1 not missing
+
+clean:
+ rm -f *.o
+ rm -f *.hi
+ rm -f *.dyn_o
+ rm -f *.dyn_hi
+
+T20436: clean
+ '$(TEST_HC)' $(TEST_HC_OPTS) -dynamic -dynamic-too -v0 A.hs
+ $(call checkExists,A.hi)
+ $(call checkExists,A.o)
+ $(call checkNotExists,A.dyn_hi)
+ $(call checkNotExists,A.dyn_o)
+
+