summaryrefslogtreecommitdiff
path: root/testsuite/tests/simplStg/should_compile/T13588.hs
blob: 60802e40c7b8f0ab64fc4e4a2bf7342cca7d9202 (plain)
1
2
3
4
5
6
7
8
9
10
11
module T13588 where

newtype T a = MkT a
f (x, y) = (MkT x, y)
{-# NOINLINE f #-}


bar x =
    let y = f (x,x) in
    let z = case y of (MkT x,y) -> (x,y) in
    (z,z)