summaryrefslogtreecommitdiff
path: root/testsuite/tests/rts/Makefile
diff options
context:
space:
mode:
authorEdward Z. Yang <ezyang@mit.edu>2013-09-13 16:43:11 -0700
committerEdward Z. Yang <ezyang@mit.edu>2013-09-13 16:49:08 -0700
commit226a18b9f1fdd4db712e4b339f92081771fbbaa0 (patch)
tree15047823f20644837f435d4433f96ba409bb4e59 /testsuite/tests/rts/Makefile
parent5dd3e990b53532d9275eb4b2aa54c8b5c856de3a (diff)
downloadhaskell-226a18b9f1fdd4db712e4b339f92081771fbbaa0.tar.gz
Tests for #5435 (init/init_array/constr handling by linker)
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Diffstat (limited to 'testsuite/tests/rts/Makefile')
-rw-r--r--testsuite/tests/rts/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/tests/rts/Makefile b/testsuite/tests/rts/Makefile
index e7895c8029..9fbf7de5fa 100644
--- a/testsuite/tests/rts/Makefile
+++ b/testsuite/tests/rts/Makefile
@@ -45,6 +45,20 @@ T5423:
"$(TEST_HC)" $(TEST_HC_OPTS) -v0 T5423.o T5423_cmm.o -o T5423$(exeext)
./T5423
+.PHONY: T5435_v
+T5435_v:
+ $(RM) T5435_c_v.o T5435_v$(exeext)
+ '$(TEST_HC)' $(TEST_HC_OPTS) -v0 -c T5435.c -o T5435_c_v.o
+ '$(TEST_HC)' $(TEST_HC_OPTS) -v0 T5435.hs -o T5435_v$(exeext)
+ ./T5435_v T5435_c_v.o
+
+.PHONY: T5435_dyn
+T5435_dyn:
+ $(RM) T5435_c_dyn.o T5435_dyn$(exeext)
+ '$(TEST_HC)' $(TEST_HC_OPTS) -v0 -dynamic -fPIC -c T5435.c -o T5435_c_dyn.o
+ '$(TEST_HC)' $(TEST_HC_OPTS) -v0 -dynamic -fPIC T5435.hs -o T5435_dyn$(exeext)
+ ./T5435_dyn T5435_c_dyn.o
+
T6006_setup :
'$(TEST_HC)' $(TEST_HC_OPTS) -c T6006.hs