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

{-# INLINABLE fac #-}
fac :: (Eq a, Num a) => a -> a
fac 0 = 1
fac n = n * fac (n-1)

{-# INLINE f #-}
f :: (Eq a, Num a) => a -> a
f a = fac a