1 /* $NetBSD: msg_384.c,v 1.1 2024/12/01 18:37:54 rillig Exp $ */ 2 # 3 "msg_384.c" 3 4 // Test for message: function definition with identifier list is obsolete in C23 [384] 5 6 /* lint1-extra-flags: -X 351 */ 7 8 /* 9 * In traditional C, defining a function by listing its parameter names first, 10 * followed by declarations, was usual. This practice has been obsoleted in 11 * favor of defining the parameter types right in the declarator. 12 */ 13 14 static inline int 15 /* expect+1: warning: function definition with identifier list is obsolete in C23 [384] */ 16 function_with_identifier_list(a, b) 17 int a, b; 18 { 19 return a + b; 20 } 21 22 static inline int 23 function_with_prototype(int a, int b) 24 { 25 return a + b; 26 } 27