Fix a bug in ABot handling in CoreArity
authorSimon Peyton Jones <simonpj@microsoft.com>
Fri, 23 Dec 2016 09:33:07 +0000 (09:33 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Fri, 23 Dec 2016 12:34:33 +0000 (12:34 +0000)
commitf06b71ae2e76ec81a618bc8bb0409b3fc6a7ebbe
tree6c176047b40cb124c8440d5c01c49900dd5e7e0b
parent7a13f1f79b690a173a3df0db6434e89a91da32e5
Fix a bug in ABot handling in CoreArity

See Note [ABot branches: use max] in CoreArity.

I stumbled on this when investigating something else, and
opened Trac #13031 to track it.

It's very hard to tickle the bug, which is why it has lurked so long,
but the test
   stranal/should_compile/T13031
does so

Oddly, the testsuite framework doesn't actually run the test; I have
no idea why.
compiler/coreSyn/CoreArity.hs
testsuite/tests/stranal/should_compile/Makefile
testsuite/tests/stranal/should_compile/T13031.hs [new file with mode: 0644]
testsuite/tests/stranal/should_compile/T13031.stdout [new file with mode: 0644]
testsuite/tests/stranal/should_compile/all.T