Module Name: src
Committed By: rillig
Date: Sun Mar 14 00:50:39 UTC 2021
Modified Files:
src/tests/usr.bin/indent: token-comment.0 token-comment.0.stdout
Log Message:
tests/indent: demonstrate off-by-one error in comment processing
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/indent/token-comment.0 \
src/tests/usr.bin/indent/token-comment.0.stdout
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/usr.bin/indent/token-comment.0
diff -u src/tests/usr.bin/indent/token-comment.0:1.1 src/tests/usr.bin/indent/token-comment.0:1.2
--- src/tests/usr.bin/indent/token-comment.0:1.1 Fri Mar 12 00:13:06 2021
+++ src/tests/usr.bin/indent/token-comment.0 Sun Mar 14 00:50:39 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: token-comment.0,v 1.1 2021/03/12 00:13:06 rillig Exp $ */
+/* $NetBSD: token-comment.0,v 1.2 2021/03/14 00:50:39 rillig Exp $ */
/* $FreeBSD$ */
/*
@@ -8,3 +8,9 @@
*/
/* TODO: Add some code to be formatted. */
+
+/* 456789 123456789 123456789 123456789 123456789 123456789 123456789 12345 */
+/* 456789 123456789 123456789 123456789 123456789 123456789 123456789 123456 */
+/* 456789 123456789 123456789 123456789 123456789 123456789 123456789 1234567 */
+/* 456789 123456789 123456789 123456789 123456789 123456789 123456789 12345678 */
+/* 456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 */
Index: src/tests/usr.bin/indent/token-comment.0.stdout
diff -u src/tests/usr.bin/indent/token-comment.0.stdout:1.1 src/tests/usr.bin/indent/token-comment.0.stdout:1.2
--- src/tests/usr.bin/indent/token-comment.0.stdout:1.1 Fri Mar 12 00:13:06 2021
+++ src/tests/usr.bin/indent/token-comment.0.stdout Sun Mar 14 00:50:39 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: token-comment.0.stdout,v 1.1 2021/03/12 00:13:06 rillig Exp $ */
+/* $NetBSD: token-comment.0.stdout,v 1.2 2021/03/14 00:50:39 rillig Exp $ */
/* $FreeBSD$ */
/*
@@ -8,3 +8,18 @@
*/
/* TODO: Add some code to be formatted. */
+
+/* 456789 123456789 123456789 123456789 123456789 123456789 123456789 12345 */
+/* 456789 123456789 123456789 123456789 123456789 123456789 123456789 123456 */
+/* 456789 123456789 123456789 123456789 123456789 123456789 123456789 1234567 */
+/* $ XXX: The '12345678' should be kept on the main line since it adds up */
+/* $ XXX: to a line length of exactly 78, which according to the manual */
+/* $ XXX: page should be ok. */
+/*
+ * 456789 123456789 123456789 123456789 123456789 123456789 123456789
+ * 12345678
+ */
+/*
+ * 456789 123456789 123456789 123456789 123456789 123456789 123456789
+ * 123456789
+ */