summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci/prog004/Makefile
blob: 61631fcd48cc487f82dda3b63d6d97cfd8c75fb3 (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(){}" >ctest.c
	'$(TEST_HC)' $(TEST_HC_OPTS) -optc-g -c ctest.c
	echo ":q" | '$(TEST_HC)' $(TEST_HC_OPTS) -v0 --interactive -ignore-dot-ghci ctest.o