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

.PHONY: unpack_sums_7

unpack_sums_7:
	$(RM) -f unpack_sums_7.o unpack_sums_7.hi
	'$(TEST_HC)' $(TEST_HC_OPTS) -c unpack_sums_7.hs  -O -dsuppress-all -dsuppress-uniques -ddump-simpl | grep '\(# |_ #\)'
	# This is a test to check for the presence of an unboxed sum in the core for a program using UNPACK
	# on a sum type which is evidence that the field has been correctly unpacked.