summaryrefslogtreecommitdiff
path: root/testsuite/tests/perf/compiler/all.T
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/perf/compiler/all.T')
-rw-r--r--testsuite/tests/perf/compiler/all.T8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/tests/perf/compiler/all.T b/testsuite/tests/perf/compiler/all.T
index 9f726cc755..28f899f7ef 100644
--- a/testsuite/tests/perf/compiler/all.T
+++ b/testsuite/tests/perf/compiler/all.T
@@ -512,3 +512,11 @@ test ('T19695',
[ collect_compiler_stats('bytes allocated',2)],
compile,
['-v0 -O2'])
+
+test('hard_hole_fits', # Testing multiple hole-fits with lots in scope for #16875
+ collect_compiler_stats('bytes allocated', 2), # 1 is 300s, 0.010 is 3s. Without hole-fits it takes 1s
+ compile, ['-fdefer-type-errors -fno-max-valid-hole-fits -package ghc'])
+
+test('T16875', # Testing one hole-fit with a lot in scope for #16875
+ collect_compiler_stats('bytes allocated', 2),
+ compile, ['-fdefer-type-errors -fno-max-valid-hole-fits -package ghc'])