testsuite: Add testcase for #14670
authorBen Gamari <bgamari.foss@gmail.com>
Sun, 21 Jan 2018 16:57:34 +0000 (11:57 -0500)
committerBen Gamari <ben@smart-cactus.org>
Sun, 21 Jan 2018 16:57:40 +0000 (11:57 -0500)
Subscribers: rwbarton, thomie, carter

GHC Trac Issues: #14670

Differential Revision: https://phabricator.haskell.org/D4314

testsuite/tests/rebindable/T14670.hs [new file with mode: 0644]
testsuite/tests/rebindable/all.T

diff --git a/testsuite/tests/rebindable/T14670.hs b/testsuite/tests/rebindable/T14670.hs
new file mode 100644 (file)
index 0000000..8a99c57
--- /dev/null
@@ -0,0 +1,11 @@
+{-# LANGUAGE RebindableSyntax #-}
+
+module Lib where
+
+import Prelude (IO)
+
+pure = undefined
+
+foo :: IO ()
+foo = do
+  pure ()
index 83bfa2f..f796a38 100644 (file)
@@ -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, [''])