Skip to content
Snippets Groups Projects
Commit e8adffb5 authored by Ben Gamari's avatar Ben Gamari
Browse files

testsuite: Set -dinitial-unique when reversing uniques

Otherwise the unique counter starts at 0, causing us to immediately
underflow.
parent 3cec2af6
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -245,7 +245,7 @@ test('T10318', normal, compile, [''])
test('UnusedTyVarWarnings', normal, compile, ['-Wunused-type-patterns'])
test('UnusedTyVarWarningsNamedWCs', normal, compile, ['-Wunused-type-patterns'])
test('T11408', normal, compile, [''])
test('T11361', normal, compile, ['-dunique-increment=-1'])
test('T11361', normal, compile, ['-dunique-increment=-1 -dinitial-unique=16777215'])
# -dunique-increment=-1 doesn't work inside the file
test('T11361a', normal, compile_fail, [''])
test('T11581', normal, compile, [''])
......
......@@ -137,7 +137,7 @@ test('T11480b', normal, compile, [''])
test('T11523', normal, compile, [''])
test('T11520', normal, compile_fail, [''])
test('T11516', normal, compile_fail, [''])
test('T11362', normal, compile, ['-dunique-increment=-1'])
test('T11362', normal, compile, ['-dunique-increment=-1 -dinitial-unique=16777215'])
# -dunique-increment=-1 doesn't work inside the file
test('T11399', normal, compile_fail, [''])
test('T11611', normal, compile_fail, [''])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment