Home | History | Annotate | Line # | Download | only in lint1
msg_100.c revision 1.3
      1 /*	$NetBSD: msg_100.c,v 1.3 2021/01/31 11:12:07 rillig Exp $	*/
      2 # 3 "msg_100.c"
      3 
      4 // Test for message: unary + is illegal in traditional C [100]
      5 
      6 /* lint1-flags: -Stw */
      7 
      8 int
      9 unary_plus(int x)
     10 {				/* expect: 270 */
     11 	return +x;		/* expect: 100 */
     12 }
     13