[commit: ghc] wip/T11970: Add test files (4adb744)

git at git.haskell.org git at git.haskell.org
Fri Jun 17 20:10:53 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/T11970
Link       : http://ghc.haskell.org/trac/ghc/changeset/4adb744a4ce389becde38ab03400475580c78971/ghc

>---------------------------------------------------------------

commit 4adb744a4ce389becde38ab03400475580c78971
Author: Matthew Pickering <matthewtpickering at gmail.com>
Date:   Sat May 21 23:25:14 2016 +0100

    Add test files


>---------------------------------------------------------------

4adb744a4ce389becde38ab03400475580c78971
 testsuite/tests/module/MultiExport.hs                     | 6 ++++++
 testsuite/tests/overloadedrecflds/should_fail/NoParent.hs | 9 +++++++++
 2 files changed, 15 insertions(+)

diff --git a/testsuite/tests/module/MultiExport.hs b/testsuite/tests/module/MultiExport.hs
new file mode 100644
index 0000000..4f8079e
--- /dev/null
+++ b/testsuite/tests/module/MultiExport.hs
@@ -0,0 +1,6 @@
+{-# LANGUAGE PatternSynonyms #-}
+module Foo ( A(x, x) ) where
+
+data A = A  Int
+
+pattern Pattern{x} = A x
diff --git a/testsuite/tests/overloadedrecflds/should_fail/NoParent.hs b/testsuite/tests/overloadedrecflds/should_fail/NoParent.hs
new file mode 100644
index 0000000..f6d984d
--- /dev/null
+++ b/testsuite/tests/overloadedrecflds/should_fail/NoParent.hs
@@ -0,0 +1,9 @@
+{-# LANGUAGE DuplicateRecordFields #-}
+module NoParent (A(x)) where
+
+data A = A
+data B = B { x :: Int }
+data C = C { x :: String }
+
+
+



More information about the ghc-commits mailing list