testsuite: Fix and extend closure_size test

Authored by bgamari on Jun 7 2019, 10:15 PM.

Description

testsuite: Fix and extend closure_size test

This was previously broken in several ways. This is fixed and it also
now tests arrays. Unfortunately I was unable to find a way to continue
testing PAP and FUN sizes; these simply depend too much upon the
behavior of the simplifier.

I also tried to extend this to test non-empty arrays as well but
unfortunately this was non-trivial as the array card size constant isn't
readily available from haskell.

Fixes Trac #16531.

Details

Committed
Marge Bot <ben+marge-bot@smart-cactus.org>Jun 10 2019, 10:53 PM
Parents
rGHC58a5d728d029: Refactor the rules for .hi and .o into a single rule using `&%>` #16764
Branches
Unknown
Tags
Unknown
Marge Bot <ben+marge-bot@smart-cactus.org> committed rGHC2f9450864b35: testsuite: Fix and extend closure_size test (authored by bgamari).Jun 10 2019, 10:53 PM