[commit: ghc] master: Add test for #10897 (6c9258d)
git at git.haskell.org
git at git.haskell.org
Wed Dec 16 23:16:52 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/6c9258def53008f050e91e6d3e08c4c297392c00/ghc
>---------------------------------------------------------------
commit 6c9258def53008f050e91e6d3e08c4c297392c00
Author: Matthew Pickering <matthewtpickering at gmail.com>
Date: Wed Dec 16 23:16:15 2015 +0000
Add test for #10897
>---------------------------------------------------------------
6c9258def53008f050e91e6d3e08c4c297392c00
testsuite/tests/patsyn/should_compile/T10897a.hs | 4 ++++
testsuite/tests/patsyn/should_compile/T10897b.hs | 4 ++++
testsuite/tests/patsyn/should_compile/all.T | 3 +++
3 files changed, 11 insertions(+)
diff --git a/testsuite/tests/patsyn/should_compile/T10897a.hs b/testsuite/tests/patsyn/should_compile/T10897a.hs
new file mode 100644
index 0000000..2bad0d9
--- /dev/null
+++ b/testsuite/tests/patsyn/should_compile/T10897a.hs
@@ -0,0 +1,4 @@
+{-# LANGUAGE PatternSynonyms #-}
+module T10897a where
+pattern Single :: a -> a
+pattern Single x = x
diff --git a/testsuite/tests/patsyn/should_compile/T10897b.hs b/testsuite/tests/patsyn/should_compile/T10897b.hs
new file mode 100644
index 0000000..6b506b8
--- /dev/null
+++ b/testsuite/tests/patsyn/should_compile/T10897b.hs
@@ -0,0 +1,4 @@
+module B where
+import T10897a
+
+Single y = True
diff --git a/testsuite/tests/patsyn/should_compile/all.T b/testsuite/tests/patsyn/should_compile/all.T
index d89cab6..4452711 100644
--- a/testsuite/tests/patsyn/should_compile/all.T
+++ b/testsuite/tests/patsyn/should_compile/all.T
@@ -42,3 +42,6 @@ test('poly-export3', normal, compile, [''])
test('multi-export', normal, compile, [''])
test('export-super-class', normal, compile, [''])
test('export-record-selector', normal, compile, [''])
+test('T10897', expect_broken(10897), multi_compile, ['T10897', [
+ ('T10897a.hs','-c')
+ ,('T10897b.hs', '-c')], ''])
More information about the ghc-commits
mailing list