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: adjust test for C11 to...



details:   https://anonhg.NetBSD.org/src/rev/8b3fb8ffb97a
branches:  trunk
changeset: 982491:8b3fb8ffb97a
user:      rillig <rillig%NetBSD.org@localhost>
date:      Wed Apr 14 22:06:38 2021 +0000

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

diffstat:

 tests/usr.bin/xlint/lint1/msg_343.c   |  8 ++++----
 tests/usr.bin/xlint/lint1/msg_343.exp |  4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (42 lines):

diff -r 13cdd290871a -r 8b3fb8ffb97a tests/usr.bin/xlint/lint1/msg_343.c
--- a/tests/usr.bin/xlint/lint1/msg_343.c       Wed Apr 14 21:29:57 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_343.c       Wed Apr 14 22:06:38 2021 +0000
@@ -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 @@
 }
 
 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 */
diff -r 13cdd290871a -r 8b3fb8ffb97a tests/usr.bin/xlint/lint1/msg_343.exp
--- a/tests/usr.bin/xlint/lint1/msg_343.exp     Wed Apr 14 21:29:57 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_343.exp     Wed Apr 14 22:06:38 2021 +0000
@@ -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]



Home | Main Index | Thread Index | Old Index