summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-api/exactprint/LayoutLet3.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/ghc-api/exactprint/LayoutLet3.hs')
-rw-r--r--testsuite/tests/ghc-api/exactprint/LayoutLet3.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/ghc-api/exactprint/LayoutLet3.hs b/testsuite/tests/ghc-api/exactprint/LayoutLet3.hs
new file mode 100644
index 0000000000..5ba80aff6a
--- /dev/null
+++ b/testsuite/tests/ghc-api/exactprint/LayoutLet3.hs
@@ -0,0 +1,10 @@
+module LayoutLet3 where
+
+-- Simple let expression, rename xxx to something longer or shorter
+-- and the let/in layout should adjust accordingly
+-- In this case the tokens for xxx + a + b should also shift out
+
+foo xxx = let a = 1
+ b = 2
+ in xxx + a + b
+