summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci/prog004/Makefile
blob: a959f82dc191f7772b8b1d066bfbf8fe6d568682 (plain)
1
2
3
4
5
6
7
8
9
10
11
TOP=../../..
include $(TOP)/mk/boilerplate.mk
include $(TOP)/mk/test.mk

# Test that we can load a C object compiled with -g into GHCi.
# (sourceforge bug #1073501).
ghciprog004:
	rm -f ctest.o
	echo "int foo(){return 0;}" >ctest.c
	'$(TEST_HC)' $(TEST_HC_OPTS) -optc-g -c ctest.c
	echo ":q" | '$(TEST_HC)' $(TEST_HC_OPTS_INTERACTIVE) ctest.o