From e8adffb528f65749b5648c44ab711ef9aec4c69a Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Thu, 4 Jul 2019 11:17:04 -0400 Subject: testsuite: Set -dinitial-unique when reversing uniques Otherwise the unique counter starts at 0, causing us to immediately underflow. --- testsuite/tests/deriving/should_compile/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testsuite/tests/deriving/should_compile') diff --git a/testsuite/tests/deriving/should_compile/Makefile b/testsuite/tests/deriving/should_compile/Makefile index 581aabbce0..f723b5c01d 100644 --- a/testsuite/tests/deriving/should_compile/Makefile +++ b/testsuite/tests/deriving/should_compile/Makefile @@ -6,7 +6,7 @@ include $(TOP)/mk/test.mk T11148: $(RM) T11148.hi T11148.o - '$(TEST_HC)' $(TEST_HC_OPTS) -c -dunique-increment=-1 T11148.hs + '$(TEST_HC)' $(TEST_HC_OPTS) -c -dunique-increment=-1 -dinitial-unique=16777215 T11148.hs # Set the unique-increment to '-1' to trigger the bug # This has to be done on the command line; # an OPTIONS_GHC pragma does not do it -- cgit v1.2.1