Home | History | Annotate | Line # | Download | only in lint1
msg_103.c revision 1.3
      1 /*	$NetBSD: msg_103.c,v 1.3 2021/07/04 17:01:58 rillig Exp $	*/
      2 # 3 "msg_103.c"
      3 
      4 // Test for message: left operand of '.' must be struct or union, not '%s' [103]
      5 
      6 struct point {
      7 	int x, y;
      8 };
      9 
     10 void
     11 test(struct point pt, struct point *ptr)
     12 {
     13 	pt.x = 0;
     14 	/* expect+1: left operand of '.' must be struct or union, not 'pointer to struct point' [103] */
     15 	ptr.y = 0;
     16 }
     17