Home | History | Annotate | Line # | Download | only in lint1
      1 /*	$NetBSD: msg_063.c,v 1.6 2025/01/03 03:14:47 rillig Exp $	*/
      2 # 3 "msg_063.c"
      3 
      4 // Test for message: prototype does not match old-style definition [63]
      5 
      6 /* lint1-extra-flags: -X 351 */
      7 
      8 int
      9 /* expect+1: warning: function definition for 'function' with identifier list is obsolete in C23 [384] */
     10 function(a, b)
     11 	int a, b;
     12 {
     13 	return a + b;
     14 }
     15 
     16 /* expect+1: error: prototype does not match old-style definition [63] */
     17 double function(int);
     18