Module Name:    src
Committed By:   rillig
Date:           Wed Apr 14 22:06:38 UTC 2021

Modified Files:
        src/tests/usr.bin/xlint/lint1: msg_343.c msg_343.exp

Log Message:
tests/lint: adjust test for C11 to the change in grammar and options


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/usr.bin/xlint/lint1/msg_343.c
cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/xlint/lint1/msg_343.exp

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/xlint/lint1/msg_343.c
diff -u src/tests/usr.bin/xlint/lint1/msg_343.c:1.3 src/tests/usr.bin/xlint/lint1/msg_343.c:1.4
--- src/tests/usr.bin/xlint/lint1/msg_343.c:1.3	Wed Apr 14 20:06:40 2021
+++ src/tests/usr.bin/xlint/lint1/msg_343.c	Wed Apr 14 22:06:38 2021
@@ -1,14 +1,14 @@
-/*	$NetBSD: msg_343.c,v 1.3 2021/04/14 20:06:40 rillig Exp $	*/
+/*	$NetBSD: msg_343.c,v 1.4 2021/04/14 22:06:38 rillig Exp $	*/
 # 3 "msg_343.c"
 
 /* Test for message: static array size is a C11 extension [343] */
 
-/* lint1-flags: -gSw */
+/* lint1-flags: -Sw */
 
 void takes_int_pointer(int []);
 void takes_int_pointer_with_ignored_size(int [3]);
 void takes_int_array(int[static 3]);	/* expect: 343 */
-/* expect+1: syntax error 'volatile' */
+/* expect+1: syntax error '3' */
 void takes_volatile_int_array(int[volatile 3]);
 
 int
@@ -30,7 +30,7 @@ returns_int_array(int a[static 3])	/* ex
 }
 
 int
-/* expect+1: syntax error 'volatile' */
+/* expect+1: syntax error '3' */
 returns_volatile_int_array(int a[volatile 3])
 {
 	/* expect+2: cannot dereference non-pointer type */

Index: src/tests/usr.bin/xlint/lint1/msg_343.exp
diff -u src/tests/usr.bin/xlint/lint1/msg_343.exp:1.2 src/tests/usr.bin/xlint/lint1/msg_343.exp:1.3
--- src/tests/usr.bin/xlint/lint1/msg_343.exp:1.2	Wed Apr 14 18:35:40 2021
+++ src/tests/usr.bin/xlint/lint1/msg_343.exp	Wed Apr 14 22:06:38 2021
@@ -1,6 +1,6 @@
 msg_343.c(10): error: static array size is a C11 extension [343]
-msg_343.c(12): error: syntax error 'volatile' [249]
+msg_343.c(12): error: syntax error '3' [249]
 msg_343.c(27): error: static array size is a C11 extension [343]
-msg_343.c(34): error: syntax error 'volatile' [249]
+msg_343.c(34): error: syntax error '3' [249]
 msg_343.c(38): error: cannot dereference non-pointer type [96]
 msg_343.c(38): warning: function returns_volatile_int_array expects to return value [214]

Reply via email to