Home | History | Annotate | Line # | Download | only in lint1
      1 /*	$NetBSD: msg_257.c,v 1.8 2023/08/02 18:51:25 rillig Exp $	*/
      2 # 3 "msg_257.c"
      3 
      4 // Test for message: extra characters in lint comment [257]
      5 
      6 /* lint1-extra-flags: -X 351 */
      7 
      8 void take(const void *);
      9 
     10 /* expect+1: warning: extra characters in lint comment [257] */
     11 /* FALLTHROUGH 3 */
     12 
     13 /* expect+1: warning: extra characters in lint comment [257] */
     14 /* FALLTHROUGH extra */
     15 
     16 /* PRINTFLIKE 7 */
     17 void
     18 my_printf(const char *fmt)
     19 /* expect+1: warning: parameter number mismatch in comment ** PRINTFLIKE ** [283] */
     20 {
     21 	take(fmt);
     22 }
     23 
     24 /* expect+1: warning: extra characters in lint comment [257] */
     25 /* SCANFLIKE extra */
     26 void
     27 my_scanf(const char *fmt)
     28 {
     29 	take(fmt);
     30 }
     31