1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-10-31 14:27:54 +01:00
git/t/t4051/hello.c
René Scharfe eced93bcb8 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>
2017-11-21 09:36:06 +09:00

24 lines
334 B
C

/*
* Hello comment.
*/
static void hello(void) // Begin of hello
{
/*
* Classic.
*/
putchar('H');
putchar('e');
putchar('l');
putchar('l');
putchar('o');
putchar(' ');
/* delete me from hello */
putchar('w');
putchar('o');
putchar('r');
putchar('l');
putchar('d');
putchar('.');
putchar('\n');
} // End of hello