Home | History | Annotate | Line # | Download | only in lint1
msg_068.c revision 1.5.2.1
      1 /*	$NetBSD: msg_068.c,v 1.5.2.1 2025/08/02 05:58:15 perseant Exp $	*/
      2 # 3 "msg_068.c"
      3 
      4 // Test for message: typedef already qualified with '%s' [68]
      5 
      6 /* lint1-extra-flags: -X 351 */
      7 
      8 typedef const char const_char;
      9 
     10 /* expect+1: warning: typedef already qualified with 'const' [68] */
     11 const const_char twice_const;
     12 
     13 typedef volatile char volatile_char;
     14 
     15 /* expect+1: warning: typedef already qualified with 'volatile' [68] */
     16 volatile volatile_char twice_volatile;
     17 
     18 typedef const volatile char const_volatile_char;
     19 
     20 /* expect+2: warning: typedef already qualified with 'const' [68] */
     21 /* expect+1: warning: typedef already qualified with 'volatile' [68] */
     22 const volatile const_volatile_char twice_const_volatile;
     23