msg_384.c revision 1.2
1/* $NetBSD: msg_384.c,v 1.2 2025/01/03 03:14:47 rillig Exp $ */ 2# 3 "msg_384.c" 3 4// Test for message: function definition for '%s' 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 14static inline int 15/* expect+1: warning: function definition for 'function_with_identifier_list' with identifier list is obsolete in C23 [384] */ 16function_with_identifier_list(a, b) 17 int a, b; 18{ 19 return a + b; 20} 21 22static inline int 23function_with_prototype(int a, int b) 24{ 25 return a + b; 26} 27