summaryrefslogtreecommitdiff
path: root/t/t4051/hello.c
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2017-11-18 19:04:00 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-11-21 09:36:06 +0900
commiteced93bcb8647ad7dad6511e0d58a4dad470f473 (patch)
treee8123f44a9db4ec45a7b024c417bb963d9955e60 /t/t4051/hello.c
parentSync with maint (diff)
downloadtgif-eced93bcb8647ad7dad6511e0d58a4dad470f473.tar.xz
t4051: add test for comments preceding function lines
When showing function context it would be helpful to show comments immediately before declarations, as they are most likely relevant. Add a test for that, but without specifying the choice of lines too rigidly in the test---we may want to stop before and not include "/*" in the future, for example. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4051/hello.c')
-rw-r--r--t/t4051/hello.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/t4051/hello.c b/t/t4051/hello.c
index 63b1a1e4ef..73e767e178 100644
--- a/t/t4051/hello.c
+++ b/t/t4051/hello.c
@@ -1,4 +1,7 @@
+/*
+ * Hello comment.
+ */
static void hello(void) // Begin of hello
{
/*