Home | History | Annotate | Line # | Download | only in lint1
      1 /*	$NetBSD: msg_010.c,v 1.7 2023/07/13 19:59:08 rillig Exp $	*/
      2 # 3 "msg_010.c"
      3 
      4 // Test for message: duplicate '%s' [10]
      5 
      6 /* lint1-extra-flags: -X 351 */
      7 
      8 /* expect+1: warning: duplicate 'inline' [10] */
      9 inline inline void
     10 double_inline(void)
     11 {
     12 }
     13 
     14 /* expect+1: warning: duplicate 'const' [10] */
     15 const const int
     16 double_const(void)
     17 {
     18 	return 0;
     19 }
     20 
     21 /* expect+1: warning: duplicate 'volatile' [10] */
     22 volatile volatile int
     23 double_volatile(void)
     24 {
     25 	return 0;
     26 }
     27 
     28 int
     29 restrict_pointer(const int *restrict p)
     30 {
     31 	return *p;
     32 }
     33 
     34 _Thread_local int thread_local_int;
     35 _Thread_local int *pointer_to_thread_local;
     36 
     37 /* expect+2: error: only 'register' is valid as storage class in parameter [9] */
     38 int
     39 thread_local_parameter(_Thread_local int i)
     40 {
     41 	return i;
     42 }
     43