summaryrefslogtreecommitdiff
path: root/testsuite/tests/simplCore/should_compile/T19246a.hs
blob: 7a68ff2efaccbcbe9f97a949328a3e9a90b82eea (plain)
1
2
3
4
5
6
7
8
module T19246a where

f :: Ord a => [a] -> ([a], a)
{-# INLINABLE f #-}
f xs = (ys, maximum ys)
  where
    ys = reverse . reverse . reverse . reverse . reverse . reverse $ xs