summaryrefslogtreecommitdiff
path: root/testsuite/tests/pmcheck/should_compile/T17248.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/pmcheck/should_compile/T17248.hs')
-rw-r--r--testsuite/tests/pmcheck/should_compile/T17248.hs15
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/tests/pmcheck/should_compile/T17248.hs b/testsuite/tests/pmcheck/should_compile/T17248.hs
new file mode 100644
index 0000000000..e320bd5184
--- /dev/null
+++ b/testsuite/tests/pmcheck/should_compile/T17248.hs
@@ -0,0 +1,15 @@
+module Lib where
+
+data T1 a = T1 a
+newtype T2 a = T2 a
+
+f :: T1 a -> Bool -> ()
+f _ True = ()
+f (T1 _) True = ()
+f _ _ = ()
+
+g :: T2 a -> Bool -> ()
+g _ True = ()
+g (T2 _) True = ()
+g _ _ = ()
+