diff options
Diffstat (limited to 'testsuite/tests/unboxedsums/Makefile')
-rw-r--r-- | testsuite/tests/unboxedsums/Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/unboxedsums/Makefile b/testsuite/tests/unboxedsums/Makefile new file mode 100644 index 0000000000..23548ec58c --- /dev/null +++ b/testsuite/tests/unboxedsums/Makefile @@ -0,0 +1,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 -ddump-simpl | grep -q '\(# |_ #\)' + # 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. |