Home | History | Annotate | Line # | Download | only in lint1
msg_010.c revision 1.5
      1 /*	$NetBSD: msg_010.c,v 1.5 2022/04/30 20:24:57 rillig Exp $	*/
      2 # 3 "msg_010.c"
      3 
      4 // Test for message: duplicate '%s' [10]
      5 
      6 /* expect+1: warning: duplicate 'inline' [10] */
      7 inline inline void
      8 double_inline(void)
      9 {
     10 }
     11 
     12 /* expect+1: warning: duplicate 'const' [10] */
     13 const const int
     14 double_const(void)
     15 {
     16 	return 0;
     17 }
     18 
     19 /* expect+1: warning: duplicate 'volatile' [10] */
     20 volatile volatile int
     21 double_volatile(void)
     22 {
     23 	return 0;
     24 }
     25 
     26 int
     27 restrict_pointer(const int *restrict p)
     28 {
     29 	return *p;
     30 }
     31 
     32 _Thread_local int thread_local_int;
     33 _Thread_local int *pointer_to_thread_local;
     34 
     35 int
     36 thread_local_parameter(_Thread_local int i) /* caught by the compiler */
     37 {
     38 	return i;
     39 }
     40