summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-api/exactprint/AddLocalDecl2.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/ghc-api/exactprint/AddLocalDecl2.hs')
-rw-r--r--testsuite/tests/ghc-api/exactprint/AddLocalDecl2.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/ghc-api/exactprint/AddLocalDecl2.hs b/testsuite/tests/ghc-api/exactprint/AddLocalDecl2.hs
new file mode 100644
index 0000000000..7609f657ed
--- /dev/null
+++ b/testsuite/tests/ghc-api/exactprint/AddLocalDecl2.hs
@@ -0,0 +1,10 @@
+module AddLocalDecl2 where
+
+-- |This is a function
+foo = x -- comment 0
+ where p = 2 -- comment 1
+
+-- |Another fun
+bar = a -- comment 2
+ where nn = 2
+ p = 2 -- comment 3