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 another example fo...



details:   https://anonhg.NetBSD.org/src/rev/3258f3b2cc14
branches:  trunk
changeset: 984516:3258f3b2cc14
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Jul 10 18:34:03 2021 +0000

description:
tests/lint: add another example for storage class in declaration

diffstat:

 tests/usr.bin/xlint/lint1/msg_083.c   |  7 ++++++-
 tests/usr.bin/xlint/lint1/msg_083.exp |  1 +
 2 files changed, 7 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 0267d0879d72 -r 3258f3b2cc14 tests/usr.bin/xlint/lint1/msg_083.c
--- a/tests/usr.bin/xlint/lint1/msg_083.c       Sat Jul 10 18:25:57 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_083.c       Sat Jul 10 18:34:03 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: msg_083.c,v 1.3 2021/01/31 11:12:07 rillig Exp $       */
+/*     $NetBSD: msg_083.c,v 1.4 2021/07/10 18:34:03 rillig Exp $       */
 # 3 "msg_083.c"
 
 // Test for message: storage class after type is obsolescent [83]
@@ -8,3 +8,8 @@
 {
        int register x;         /* expect: 83 */
 }
+
+struct {
+       int member;
+} typedef s;
+/* expect-1: warning: storage class after type is obsolescent [83] */
diff -r 0267d0879d72 -r 3258f3b2cc14 tests/usr.bin/xlint/lint1/msg_083.exp
--- a/tests/usr.bin/xlint/lint1/msg_083.exp     Sat Jul 10 18:25:57 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_083.exp     Sat Jul 10 18:34:03 2021 +0000
@@ -1,1 +1,2 @@
 msg_083.c(9): warning: storage class after type is obsolescent [83]
+msg_083.c(14): warning: storage class after type is obsolescent [83]



Home | Main Index | Thread Index | Old Index