summaryrefslogtreecommitdiff
path: root/testsuite/tests/dynlibs/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/dynlibs/Makefile')
-rw-r--r--testsuite/tests/dynlibs/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/tests/dynlibs/Makefile b/testsuite/tests/dynlibs/Makefile
index 2f5620c73b..e3af7503e7 100644
--- a/testsuite/tests/dynlibs/Makefile
+++ b/testsuite/tests/dynlibs/Makefile
@@ -52,3 +52,9 @@ T5373:
-./T5373C +RTS -c 2>&1 | grep disabled
-./T5373D +RTS -c 2>&1 | grep disabled
+.PHONY: T13702
+T13702:
+ '$(TEST_HC)' -v0 -dynamic -rdynamic -fPIC -pie T13702.hs
+ '$(TEST_HC)' -v0 -dynamic T13702a.hs
+ ./T13702 # first make sure executable itself works
+ ./T13702a # then try dynamically loading it as library