xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_010.c (revision 82d56013d7b633d116a93943de88e08335357a7c)
1 /*	$NetBSD: msg_010.c,v 1.4 2021/01/18 17:43:44 rillig Exp $	*/
2 # 3 "msg_010.c"
3 
4 // Test for message: duplicate '%s' [10]
5 
6 inline inline void		/* expect: [10] */
7 double_inline(void)
8 {
9 }
10 
11 const const int			/* expect: [10] */
12 double_const(void)
13 {
14 	return 0;
15 }
16 
17 volatile volatile int		/* expect: [10] */
18 double_volatile(void)
19 {
20 	return 0;
21 }
22 
23 int
24 restrict_pointer(const int *restrict p)
25 {
26 	return *p;
27 }
28 
29 _Thread_local int thread_local_int;
30 _Thread_local int *pointer_to_thread_local;
31 
32 int
33 thread_local_parameter(_Thread_local int i) /* caught by the compiler */
34 {
35 	return i;
36 }
37