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