Home | History | Annotate | Line # | Download | only in lint1
msg_031.c revision 1.5
      1 /*	$NetBSD: msg_031.c,v 1.5 2021/07/04 13:31:10 rillig Exp $	*/
      2 # 3 "msg_031.c"
      3 
      4 // Test for message: argument '%s' has type '%s' [31]
      5 
      6 struct complete {
      7 	int dummy;
      8 };
      9 
     10 struct incomplete;			/* expect: 233 */
     11 
     12 
     13 struct complete complete_var;
     14 
     15 struct incomplete incomplete_var;	/* expect: 31 */
     16 
     17 
     18 /* expect+1: error: argument '<unnamed>' has type 'incomplete struct incomplete' [31] */
     19 void function(struct incomplete);
     20