summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-api/annotations/CommentsTest.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/ghc-api/annotations/CommentsTest.hs')
-rw-r--r--testsuite/tests/ghc-api/annotations/CommentsTest.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/ghc-api/annotations/CommentsTest.hs b/testsuite/tests/ghc-api/annotations/CommentsTest.hs
new file mode 100644
index 0000000000..ce0f336d39
--- /dev/null
+++ b/testsuite/tests/ghc-api/annotations/CommentsTest.hs
@@ -0,0 +1,13 @@
+{-# LANGUAGE DeriveFoldable #-}
+module CommentsTest (foo) where
+{-
+An opening comment
+-}
+
+import qualified Data.List as DL
+
+-- | The function @foo@ does blah
+foo = let
+ a = 1
+ b = 2 -- value 2
+ in a + b