summaryrefslogtreecommitdiff
path: root/testsuite/tests/cpranal/should_compile
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/cpranal/should_compile')
-rw-r--r--testsuite/tests/cpranal/should_compile/T18109.hs4
-rw-r--r--testsuite/tests/cpranal/should_compile/T18109.stderr36
2 files changed, 20 insertions, 20 deletions
diff --git a/testsuite/tests/cpranal/should_compile/T18109.hs b/testsuite/tests/cpranal/should_compile/T18109.hs
index 5c52a187c9..fb79c749a3 100644
--- a/testsuite/tests/cpranal/should_compile/T18109.hs
+++ b/testsuite/tests/cpranal/should_compile/T18109.hs
@@ -14,8 +14,8 @@ f n = F (+n)
data T = T (Int, Int)
-g :: T -> T
-g t@(T p) = p `seq` t
+g :: (Int, Int) -> T
+g p = p `seq` T p
{-# NOINLINE g #-}
data U = U ![Int]
diff --git a/testsuite/tests/cpranal/should_compile/T18109.stderr b/testsuite/tests/cpranal/should_compile/T18109.stderr
index ad92bdda17..f547ac62d7 100644
--- a/testsuite/tests/cpranal/should_compile/T18109.stderr
+++ b/testsuite/tests/cpranal/should_compile/T18109.stderr
@@ -1,51 +1,51 @@
==================== Tidy Core ====================
-Result size of Tidy Core = {terms: 78, types: 81, coercions: 0, joins: 0/1}
+Result size of Tidy Core = {terms: 75, types: 81, coercions: 0, joins: 0/1}
-- RHS size: {terms: 6, types: 4, coercions: 0, joins: 0/0}
T18109.$WU :: [Int] %1 -> U
-T18109.$WU = \ (dt_aDr :: [Int]) -> case dt_aDr of dt_X0 { __DEFAULT -> T18109.U dt_X0 }
+T18109.$WU = \ (conrep_aDI :: [Int]) -> case conrep_aDI of conrep_X0 { __DEFAULT -> T18109.U conrep_X0 }
-- RHS size: {terms: 6, types: 12, coercions: 0, joins: 0/0}
T18109.$wg :: (Int, Int) -> (# (Int, Int) #)
-T18109.$wg = \ (ww_sKr :: (Int, Int)) -> case ww_sKr of p_X2 { (ipv_sIU, ipv1_sIV) -> (# p_X2 #) }
+T18109.$wg = \ (p_sL1 :: (Int, Int)) -> case p_sL1 of p1_X0 { (ipv_sJr, ipv1_sJs) -> (# p1_X0 #) }
--- RHS size: {terms: 10, types: 13, coercions: 0, joins: 0/0}
-g :: T -> T
-g = \ (w_sKp :: T) -> case w_sKp of { T ww_sKr -> case T18109.$wg ww_sKr of { (# ww1_sKJ #) -> T18109.T ww1_sKJ } }
+-- RHS size: {terms: 7, types: 11, coercions: 0, joins: 0/0}
+g :: (Int, Int) -> T
+g = \ (p_sL1 :: (Int, Int)) -> case T18109.$wg p_sL1 of { (# ww_sLl #) -> T18109.T ww_sLl }
-- RHS size: {terms: 6, types: 5, coercions: 0, joins: 0/0}
T18109.$wf :: Int -> (# Int -> Int #)
-T18109.$wf = \ (w_sKw :: Int) -> (# \ (v_B2 :: Int) -> GHC.Num.$fNumInt_$c+ v_B2 w_sKw #)
+T18109.$wf = \ (n_sL6 :: Int) -> (# \ (v_B2 :: Int) -> GHC.Num.$fNumInt_$c+ v_B2 n_sL6 #)
-- RHS size: {terms: 7, types: 7, coercions: 0, joins: 0/0}
f :: Int -> F
-f = \ (w_sKw :: Int) -> case T18109.$wf w_sKw of { (# ww_sKL #) -> T18109.F ww_sKL }
+f = \ (n_sL6 :: Int) -> case T18109.$wf n_sL6 of { (# ww_sLn #) -> T18109.F ww_sLn }
-- RHS size: {terms: 26, types: 10, coercions: 0, joins: 0/1}
T18109.$wh :: GHC.Prim.Int# -> [Int]
T18109.$wh
- = \ (ww_sKE :: GHC.Prim.Int#) ->
- case GHC.Prim.># 0# ww_sKE of {
+ = \ (ww_sLg :: GHC.Prim.Int#) ->
+ case GHC.Prim.># 0# ww_sLg of {
__DEFAULT ->
letrec {
- go3_aKm :: GHC.Prim.Int# -> [Int]
- go3_aKm
- = \ (x_aKn :: GHC.Prim.Int#) ->
+ go3_aKV :: GHC.Prim.Int# -> [Int]
+ go3_aKV
+ = \ (x_aKW :: GHC.Prim.Int#) ->
GHC.Types.:
@Int
- (GHC.Types.I# x_aKn)
- (case GHC.Prim.==# x_aKn ww_sKE of {
- __DEFAULT -> go3_aKm (GHC.Prim.+# x_aKn 1#);
+ (GHC.Types.I# x_aKW)
+ (case GHC.Prim.==# x_aKW ww_sLg of {
+ __DEFAULT -> go3_aKV (GHC.Prim.+# x_aKW 1#);
1# -> GHC.Types.[] @Int
}); } in
- go3_aKm 0#;
+ go3_aKV 0#;
1# -> GHC.Types.[] @Int
}
-- RHS size: {terms: 10, types: 5, coercions: 0, joins: 0/0}
h :: Int -> U
-h = \ (w_sKC :: Int) -> case w_sKC of { GHC.Types.I# ww_sKE -> case T18109.$wh ww_sKE of ww1_sKN { __DEFAULT -> T18109.U ww1_sKN } }
+h = \ (n_sLe :: Int) -> case n_sLe of { GHC.Types.I# ww_sLg -> case T18109.$wh ww_sLg of ww1_sLp { __DEFAULT -> T18109.U ww1_sLp } }