Home | History | Annotate | Line # | Download | only in lint1
msg_096.c revision 1.6
      1 /*	$NetBSD: msg_096.c,v 1.6 2022/06/21 21:18:30 rillig Exp $	*/
      2 # 3 "msg_096.c"
      3 
      4 // Test for message: cannot dereference non-pointer type '%s' [96]
      5 
      6 int
      7 unary_plus(int i)
      8 {
      9 	return +i;
     10 }
     11 
     12 int
     13 unary_minus(int i)
     14 {
     15 	return -i;
     16 }
     17 
     18 void
     19 unary_asterisk(int i)
     20 {
     21 	i++;
     22 
     23 	/* expect+1: error: cannot dereference non-pointer type 'int' [96] */
     24 	return *i;
     25 }
     26