Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/usr.bin/xlint/lint1 tests/lint: add comma to struct in...
details: https://anonhg.NetBSD.org/src/rev/3fb635841b9c
branches: trunk
changeset: 960508:3fb635841b9c
user: rillig <rillig%NetBSD.org@localhost>
date: Fri Mar 19 17:40:37 2021 +0000
description:
tests/lint: add comma to struct initialization
This places the error marker one line up, where it is expected.
diffstat:
tests/usr.bin/xlint/lint1/d_init_pop_member.c | 6 +++---
tests/usr.bin/xlint/lint1/d_init_pop_member.exp | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diffs (25 lines):
diff -r 9bc7ffe8cf88 -r 3fb635841b9c tests/usr.bin/xlint/lint1/d_init_pop_member.c
--- a/tests/usr.bin/xlint/lint1/d_init_pop_member.c Fri Mar 19 17:37:57 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_init_pop_member.c Fri Mar 19 17:40:37 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: d_init_pop_member.c,v 1.5 2021/02/20 16:55:32 rillig Exp $ */
+/* $NetBSD: d_init_pop_member.c,v 1.6 2021/03/19 17:40:37 rillig Exp $ */
# 3 "d_init_pop_member.c"
/*
@@ -54,6 +54,6 @@
* Before init.c 1.52 from 2020-01-01:
* wrong "warning: bit-field initializer does not fit [180]"
*/
- .capital.mayor.favorite_color.red = 0xFF
- }; /*FIXME*//* expect: 101 */
+ .capital.mayor.favorite_color.red = 0xFF, /*FIXME*//* expect: 101 */
+ };
}
diff -r 9bc7ffe8cf88 -r 3fb635841b9c tests/usr.bin/xlint/lint1/d_init_pop_member.exp
--- a/tests/usr.bin/xlint/lint1/d_init_pop_member.exp Fri Mar 19 17:37:57 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_init_pop_member.exp Fri Mar 19 17:40:37 2021 +0000
@@ -1,2 +1,2 @@
d_init_pop_member.c(48): undefined struct/union member: capital [101]
-d_init_pop_member.c(58): undefined struct/union member: capital [101]
+d_init_pop_member.c(57): undefined struct/union member: capital [101]
Home |
Main Index |
Thread Index |
Old Index