[commit: ghc] master: testsuite: Add testcase for #14670 (765ba65)

git at git.haskell.org git at git.haskell.org
Mon Jan 22 01:39:41 UTC 2018


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/765ba657c08453615521f5cb0b2418512e606743/ghc

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

commit 765ba657c08453615521f5cb0b2418512e606743
Author: Ben Gamari <bgamari.foss at gmail.com>
Date:   Sun Jan 21 11:57:34 2018 -0500

    testsuite: Add testcase for #14670
    
    Subscribers: rwbarton, thomie, carter
    
    GHC Trac Issues: #14670
    
    Differential Revision: https://phabricator.haskell.org/D4314


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

765ba657c08453615521f5cb0b2418512e606743
 testsuite/tests/rebindable/T14670.hs | 11 +++++++++++
 testsuite/tests/rebindable/all.T     |  1 +
 2 files changed, 12 insertions(+)

diff --git a/testsuite/tests/rebindable/T14670.hs b/testsuite/tests/rebindable/T14670.hs
new file mode 100644
index 0000000..8a99c57
--- /dev/null
+++ b/testsuite/tests/rebindable/T14670.hs
@@ -0,0 +1,11 @@
+{-# LANGUAGE RebindableSyntax #-}
+
+module Lib where
+
+import Prelude (IO)
+
+pure = undefined
+
+foo :: IO ()
+foo = do
+  pure ()
diff --git a/testsuite/tests/rebindable/all.T b/testsuite/tests/rebindable/all.T
index 83bfa2f..f796a38 100644
--- a/testsuite/tests/rebindable/all.T
+++ b/testsuite/tests/rebindable/all.T
@@ -34,3 +34,4 @@ test('T10112', normal, compile, [''])
 test('T11216', normal, compile, [''])
 test('T11216A', normal, compile, [''])
 test('T12080', normal, compile, [''])
+test('T14670', expect_broken(14670), compile, [''])



More information about the ghc-commits mailing list