xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_237.c (revision e6298b924c5ba98f3a22919b56dab04a87cdbb1c)
1 /*	$NetBSD: msg_237.c,v 1.4 2023/07/07 19:45:22 rillig Exp $	*/
2 # 3 "msg_237.c"
3 
4 // Test for message: redeclaration of formal parameter '%s' [237]
5 
6 /* See also message 21, which has the same text. */
7 
8 /* lint1-extra-flags: -X 351 */
9 
10 /*ARGSUSED*/
11 void
12 /* expect+1: error: redeclaration of formal parameter 'param' [237] */
prototype_with_duplicate_parameter(int param,int param)13 prototype_with_duplicate_parameter(int param, int param)
14 {
15 }
16