xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_299.c (revision e6298b924c5ba98f3a22919b56dab04a87cdbb1c)
1 /*	$NetBSD: msg_299.c,v 1.5 2023/07/07 19:45:22 rillig Exp $	*/
2 # 3 "msg_299.c"
3 
4 /* Test for message: prototype does not match old-style definition, arg #%d [299] */
5 
6 /* lint1-flags: -w -X 351 */
7 
old_style(x)8 old_style(x)
9 	double x;
10 {
11 	return x > 0.0;
12 }
13 
14 /* expect+1: error: prototype does not match old-style definition, arg #1 [299] */
15 void old_style(char ch);
16