Module Name:    src
Committed By:   rillig
Date:           Mon Jan 18 17:41:04 UTC 2021

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

Log Message:
lint: add more test cases for duplicate type qualifiers


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

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_010.c
diff -u src/tests/usr.bin/xlint/lint1/msg_010.c:1.2 src/tests/usr.bin/xlint/lint1/msg_010.c:1.3
--- src/tests/usr.bin/xlint/lint1/msg_010.c:1.2	Thu Jan  7 18:37:41 2021
+++ src/tests/usr.bin/xlint/lint1/msg_010.c	Mon Jan 18 17:41:04 2021
@@ -1,21 +1,36 @@
-/*	$NetBSD: msg_010.c,v 1.2 2021/01/07 18:37:41 rillig Exp $	*/
+/*	$NetBSD: msg_010.c,v 1.3 2021/01/18 17:41:04 rillig Exp $	*/
 # 3 "msg_010.c"
 
 // Test for message: duplicate '%s' [10]
 
-inline inline void
+inline inline void		/* expect: [10] */
 double_inline(void)
 {
 }
 
-const const int
+const const int			/* expect: [10] */
 double_const(void)
 {
 	return 0;
 }
 
-volatile volatile int
+volatile volatile int		/* expect: [10] */
 double_volatile(void)
 {
 	return 0;
 }
+
+int
+restrict_pointer(const int * /*restrict*/ p) // FIXME: assertion "== VOLATILE" failed
+{
+	return *p;
+}
+
+_Thread_local int thread_local_int;
+_Thread_local int *pointer_to_thread_local;
+
+int
+thread_local_parameter(_Thread_local int i) /* caught by the compiler */
+{
+	return i;
+}

Reply via email to