summaryrefslogtreecommitdiff
path: root/testsuite/tests/layout/layout006.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/layout/layout006.hs')
-rw-r--r--testsuite/tests/layout/layout006.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/layout/layout006.hs b/testsuite/tests/layout/layout006.hs
new file mode 100644
index 0000000000..70eacb42cf
--- /dev/null
+++ b/testsuite/tests/layout/layout006.hs
@@ -0,0 +1,13 @@
+
+module M where
+
+-- GHC's RdrHsSyn.lhs had a piece of code like this
+
+f :: IO ()
+f
+ | True = do
+ let x = ()
+ y = ()
+ return ()
+ | True = return ()
+