diff options
Diffstat (limited to 'testsuite/tests/stranal/sigs/T18885b.hs')
-rw-r--r-- | testsuite/tests/stranal/sigs/T18885b.hs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/stranal/sigs/T18885b.hs b/testsuite/tests/stranal/sigs/T18885b.hs new file mode 100644 index 0000000000..556dcd5d76 --- /dev/null +++ b/testsuite/tests/stranal/sigs/T18885b.hs @@ -0,0 +1,13 @@ +{-# OPTIONS_GHC -O2 -fforce-recomp #-} +{-# LANGUAGE BangPatterns #-} + +module T18885b where + +force :: (Int, Int) -> (Int, Int) +force p@(!x, !y) = p +{-# NOINLINE force #-} + +test :: (Int, Int) -> Int -> (Int, Int) +test p z = case p of + (x, y) | odd z -> force p + | otherwise -> (1, 2) |