From 40f5d5969a930931574d524792ede65f1cee324a Mon Sep 17 00:00:00 2001 From: rillig Date: Fri, 12 Mar 2021 18:28:07 +0000 Subject: [PATCH] tests/indent: demonstrate stray empty line at end-of-file --- tests/usr.bin/indent/comment-line-end.0 | 4 +++- tests/usr.bin/indent/comment-line-end.0.stdout | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/usr.bin/indent/comment-line-end.0 b/tests/usr.bin/indent/comment-line-end.0 index 7ab4f7118973..ba2c2ccf2f86 100644 --- a/tests/usr.bin/indent/comment-line-end.0 +++ b/tests/usr.bin/indent/comment-line-end.0 @@ -1,4 +1,4 @@ -/* $NetBSD: comment-line-end.0,v 1.4 2021/03/07 22:11:01 rillig Exp $ */ +/* $NetBSD: comment-line-end.0,v 1.5 2021/03/12 18:28:07 rillig Exp $ */ /* $FreeBSD$ */ /* @@ -26,3 +26,5 @@ int main(void) { } + +// end-of-line comment at the end of the file diff --git a/tests/usr.bin/indent/comment-line-end.0.stdout b/tests/usr.bin/indent/comment-line-end.0.stdout index 44a7ff20e8c6..e6135487488b 100644 --- a/tests/usr.bin/indent/comment-line-end.0.stdout +++ b/tests/usr.bin/indent/comment-line-end.0.stdout @@ -1,4 +1,4 @@ -/* $NetBSD: comment-line-end.0.stdout,v 1.4 2021/03/07 22:11:01 rillig Exp $ */ +/* $NetBSD: comment-line-end.0.stdout,v 1.5 2021/03/12 18:28:07 rillig Exp $ */ /* $FreeBSD$ */ /* @@ -29,3 +29,6 @@ int main(void) { } + +// end-of-line comment at the end of the file +