Home | History | Annotate | Line # | Download | only in lint1
msg_330.c revision 1.4
      1 /*	$NetBSD: msg_330.c,v 1.4 2021/04/05 01:35:34 rillig Exp $	*/
      2 # 3 "msg_330.c"
      3 
      4 // Test for message: operand of '%s' must be bool, not '%s' [330]
      5 //
      6 // See d_c99_bool_strict.c for many more examples.
      7 
      8 /* lint1-extra-flags: -T */
      9 
     10 typedef _Bool bool;
     11 
     12 void
     13 called(bool);
     14 
     15 /*ARGSUSED*/
     16 void
     17 example(bool b, char c, int i)
     18 {
     19 	called(!b);
     20 	called(!c);		/* expect: 330 *//* expect: 334 */
     21 	called(!i);		/* expect: 330 *//* expect: 334 */
     22 }
     23