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: test duplicate type qu...



details:   https://anonhg.NetBSD.org/src/rev/81e685b33bf0
branches:  trunk
changeset: 377479:81e685b33bf0
user:      rillig <rillig%NetBSD.org@localhost>
date:      Thu Jul 13 22:44:10 2023 +0000

description:
tests/lint: test duplicate type qualifiers in pointer types

diffstat:

 tests/usr.bin/xlint/lint1/decl.c |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 735bd86aab63 -r 81e685b33bf0 tests/usr.bin/xlint/lint1/decl.c
--- a/tests/usr.bin/xlint/lint1/decl.c  Thu Jul 13 21:29:49 2023 +0000
+++ b/tests/usr.bin/xlint/lint1/decl.c  Thu Jul 13 22:44:10 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: decl.c,v 1.22 2023/07/07 06:03:31 rillig Exp $ */
+/*     $NetBSD: decl.c,v 1.23 2023/07/13 22:44:10 rillig Exp $ */
 # 3 "decl.c"
 
 /*
@@ -183,3 +183,10 @@ cover_func_declarator(void)
 /* expect+2: error: syntax error 'goto' [249] */
 /* expect+1: warning: empty array declaration for 'void_array_error' [190] */
 void void_array_error[] goto;
+
+const volatile int
+/* expect+1: warning: duplicate 'const' [10] */
+    *const volatile const
+/* expect+1: warning: duplicate 'volatile' [10] */
+    *volatile const volatile
+    *duplicate_ptr;



Home | Main Index | Thread Index | Old Index