summaryrefslogtreecommitdiff
path: root/testsuite/tests/simplCore/should_compile/T21851a.hs
blob: d11e9eb4b75e8e9c8613986b4afefae55eb83256 (plain)
1
2
3
4
5
module T21851a where

f :: Num b => b -> (b, b) -- note: recursive to prevent inlining
f x = (x + 1, snd (f x))  -- on such a small example
{-# SPECIALIZE f :: Int -> (Int, Int) #-}