msg_384.c revision 1.2
11.2Srillig/*	$NetBSD: msg_384.c,v 1.2 2025/01/03 03:14:47 rillig Exp $	*/
21.1Srillig# 3 "msg_384.c"
31.1Srillig
41.2Srillig// Test for message: function definition for '%s' with identifier list is obsolete in C23 [384]
51.1Srillig
61.1Srillig/* lint1-extra-flags: -X 351 */
71.1Srillig
81.1Srillig/*
91.1Srillig * In traditional C, defining a function by listing its parameter names first,
101.1Srillig * followed by declarations, was usual. This practice has been obsoleted in
111.1Srillig * favor of defining the parameter types right in the declarator.
121.1Srillig */
131.1Srillig
141.1Srilligstatic inline int
151.2Srillig/* expect+1: warning: function definition for 'function_with_identifier_list' with identifier list is obsolete in C23 [384] */
161.1Srilligfunction_with_identifier_list(a, b)
171.1Srillig	int a, b;
181.1Srillig{
191.1Srillig	return a + b;
201.1Srillig}
211.1Srillig
221.1Srilligstatic inline int
231.1Srilligfunction_with_prototype(int a, int b)
241.1Srillig{
251.1Srillig	return a + b;
261.1Srillig}
27