[commit: ghc] wip/T9023: Test Trac #9023 (1b45c6b)
git at git.haskell.org
git at git.haskell.org
Sun Jun 22 11:21:21 UTC 2014
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/T9023
Link : http://ghc.haskell.org/trac/ghc/changeset/1b45c6b4959762209dbcabf3290feb8673a60b23/ghc
>---------------------------------------------------------------
commit 1b45c6b4959762209dbcabf3290feb8673a60b23
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date: Thu Jun 5 12:26:24 2014 +0100
Test Trac #9023
>---------------------------------------------------------------
1b45c6b4959762209dbcabf3290feb8673a60b23
testsuite/tests/patsyn/should_compile/T9023.hs | 6 ++++++
testsuite/tests/patsyn/should_compile/all.T | 1 +
2 files changed, 7 insertions(+)
diff --git a/testsuite/tests/patsyn/should_compile/T9023.hs b/testsuite/tests/patsyn/should_compile/T9023.hs
new file mode 100644
index 0000000..3a86140
--- /dev/null
+++ b/testsuite/tests/patsyn/should_compile/T9023.hs
@@ -0,0 +1,6 @@
+{-# LANGUAGE PatternSynonyms #-}
+
+module T9023 where
+
+pattern P a b = Just (a, b)
+foo P{} = True
diff --git a/testsuite/tests/patsyn/should_compile/all.T b/testsuite/tests/patsyn/should_compile/all.T
index ecc4701..d851bc3 100644
--- a/testsuite/tests/patsyn/should_compile/all.T
+++ b/testsuite/tests/patsyn/should_compile/all.T
@@ -9,3 +9,4 @@ test('num', normal, compile, [''])
test('incomplete', normal, compile, [''])
test('export', normal, compile, [''])
test('T8966', normal, compile, [''])
+test('T9023', normal, compile, [''])
More information about the ghc-commits
mailing list