summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-api/exactprint/RmDecl1.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/ghc-api/exactprint/RmDecl1.hs')
-rw-r--r--testsuite/tests/ghc-api/exactprint/RmDecl1.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/ghc-api/exactprint/RmDecl1.hs b/testsuite/tests/ghc-api/exactprint/RmDecl1.hs
new file mode 100644
index 0000000000..15cd9f1e04
--- /dev/null
+++ b/testsuite/tests/ghc-api/exactprint/RmDecl1.hs
@@ -0,0 +1,13 @@
+module RmDecl1 where
+
+sumSquares x = x * p
+ where p=2 {-There is a comment-}
+
+sq :: Int -> Int -> Int
+sq pow 0 = 0
+sq pow z = z^pow --there is a comment
+
+{- foo bar -}
+anotherFun 0 y = sq y
+ where sq x = x^2
+