Simon Jakobi pushed to branch wip/sjakobi/regression-tests-3 at Glasgow Haskell Compiler / GHC
Commits:
-
57692b72
by Simon Jakobi at 2026-03-08T00:18:24+01:00
2 changed files:
Changes:
| 1 | +-- Regression test for #13820. Instead of the original 27 `id`s, this
|
|
| 2 | +-- test uses only 24, so a regression is less likely to result in an
|
|
| 3 | +-- out-of-memory situation.
|
|
| 4 | +f = id id id id
|
|
| 5 | + id id id id
|
|
| 6 | + id id id id
|
|
| 7 | + id id id id
|
|
| 8 | + id id id id
|
|
| 9 | + id id id id
|
|
| 10 | + |
|
| 11 | +main = print 1 |
| ... | ... | @@ -680,6 +680,12 @@ test ('T13253-spj', |
| 680 | 680 | ],
|
| 681 | 681 | compile,
|
| 682 | 682 | ['-v0 -O'])
|
| 683 | +test ('T13820',
|
|
| 684 | + [ collect_compiler_stats('peak_megabytes_allocated', 5),
|
|
| 685 | + collect_compiler_stats('bytes allocated', 2),
|
|
| 686 | + ],
|
|
| 687 | + compile,
|
|
| 688 | + ['-v0'])
|
|
| 683 | 689 | test ('T14766',
|
| 684 | 690 | [ collect_compiler_stats('bytes allocated',2),
|
| 685 | 691 | pre_cmd('python3 genT14766.py > T14766.hs'),
|