Home | History | Annotate | Line # | Download | only in lint1
msg_239.c revision 1.3
      1 /*	$NetBSD: msg_239.c,v 1.3 2021/04/02 22:38:42 rillig Exp $	*/
      2 # 3 "msg_239.c"
      3 
      4 // Test for message: constant argument to NOT [239]
      5 
      6 /* lint1-extra-flags: -h */
      7 
      8 _Bool
      9 example(int n)
     10 {
     11 	_Bool b;
     12 
     13 	b = !0;		/* expect: constant in conditional context, 239 */
     14 	b = !1;		/* expect: constant in conditional context, 239 */
     15 	b = !(n > 1);
     16 
     17 	return b;
     18 }
     19