msg_286.c revision 1.4
1/*	$NetBSD: msg_286.c,v 1.4 2025/03/10 22:35:02 rillig Exp $	*/
2# 3 "msg_286.c"
3
4// Test for message: function definition is not a prototype [286]
5
6/* lint1-extra-flags: -h -X 351 */
7
8/* expect+1: warning: function declaration is not a prototype [287] */
9void no_prototype_declaration();
10void prototype_declaration(void);
11
12void
13no_prototype_definition()
14/* expect+1: warning: function definition is not a prototype [286] */
15{
16}
17
18void
19prototype_definition(void)
20{
21}
22
23int
24main()
25/* expect+1: warning: function definition is not a prototype [286] */
26{
27}
28