summaryrefslogtreecommitdiff
path: root/tests/usr.bin/xlint/lint1/msg_277.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/usr.bin/xlint/lint1/msg_277.c')
-rw-r--r--tests/usr.bin/xlint/lint1/msg_277.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/usr.bin/xlint/lint1/msg_277.c b/tests/usr.bin/xlint/lint1/msg_277.c
index 9ef7d2a8c33..502088169ae 100644
--- a/tests/usr.bin/xlint/lint1/msg_277.c
+++ b/tests/usr.bin/xlint/lint1/msg_277.c
@@ -1,4 +1,4 @@
-/* $NetBSD: msg_277.c,v 1.7 2023/03/28 14:44:35 rillig Exp $ */
+/* $NetBSD: msg_277.c,v 1.8 2023/07/07 06:03:31 rillig Exp $ */
# 3 "msg_277.c"
// Test for message: initialization of '%s' with '%s' [277]
@@ -27,7 +27,9 @@ example(enum E e, int i)
sink_int(i2);
sink_int(i3);
+ /* expect+1: warning: 'init_0' set but not used in function 'example' [191] */
enum E init_0 = 0;
+ /* expect+2: warning: 'init_1' set but not used in function 'example' [191] */
/* expect+1: warning: initialization of 'enum E' with 'int' [277] */
enum E init_1 = 1;
}