summaryrefslogtreecommitdiff
path: root/testsuite/tests/rebindable/T14670.hs
diff options
context:
space:
mode:
authorBen Gamari <bgamari.foss@gmail.com>2018-01-21 11:57:34 -0500
committerBen Gamari <ben@smart-cactus.org>2018-01-21 11:57:40 -0500
commit765ba657c08453615521f5cb0b2418512e606743 (patch)
tree7f563156dfd31fee11bf68f84ed5bae772df802b /testsuite/tests/rebindable/T14670.hs
parentf855769690eb998ea25818ee794714957852af48 (diff)
downloadhaskell-765ba657c08453615521f5cb0b2418512e606743.tar.gz
testsuite: Add testcase for #14670
Subscribers: rwbarton, thomie, carter GHC Trac Issues: #14670 Differential Revision: https://phabricator.haskell.org/D4314
Diffstat (limited to 'testsuite/tests/rebindable/T14670.hs')
-rw-r--r--testsuite/tests/rebindable/T14670.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/rebindable/T14670.hs b/testsuite/tests/rebindable/T14670.hs
new file mode 100644
index 0000000000..8a99c576ed
--- /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 ()