diff options
Diffstat (limited to 'testsuite/tests/pmcheck/should_compile/T17725.hs')
-rw-r--r-- | testsuite/tests/pmcheck/should_compile/T17725.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/pmcheck/should_compile/T17725.hs b/testsuite/tests/pmcheck/should_compile/T17725.hs new file mode 100644 index 0000000000..8ed3856fa3 --- /dev/null +++ b/testsuite/tests/pmcheck/should_compile/T17725.hs @@ -0,0 +1,10 @@ +{-# OPTIONS_GHC -Wincomplete-patterns -fforce-recomp #-} +{-# LANGUAGE BangPatterns #-} +module Lib where + +newtype IInt = IInt Int + +f :: IInt -> Bool -> () +f !(IInt _) True = () +f (IInt 42) True = () +f _ _ = () |