msg_287.c revision 1.4
1/*	$NetBSD: msg_287.c,v 1.4 2025/03/10 22:35:02 rillig Exp $	*/
2# 3 "msg_287.c"
3
4// Test for message: function declaration is not a prototype [287]
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
12/* expect+1: warning: function declaration is not a prototype [287] */
13typedef void (no_prototype_typedef)();
14typedef void (prototype_typedef)(void);
15
16/* expect+1: warning: function declaration is not a prototype [287] */
17int no_prototype_sizeof[sizeof(void (*)())];
18int prototype_sizeof[sizeof(void (*)(void))];
19