xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_027.c (revision 865c57e0098351fba0d2d2a97b33e7e0270e62c6)
1 /*	$NetBSD: msg_027.c,v 1.8 2023/03/28 14:44:34 rillig Exp $	*/
2 # 3 "msg_027.c"
3 
4 // Test for message: redeclaration of '%s' [27]
5 
6 /* lint1-extra-flags: -X 351 */
7 
8 extern int identifier(void);
9 
10 /* expect+1: error: redeclaration of 'identifier' with type 'function(void) returning double', expected 'function(void) returning int' [347] */
11 extern double identifier(void);
12 
13 enum {
14 	constant,
15 	/* expect+1: error: redeclaration of 'constant' [27] */
16 	constant,
17 	next
18 };
19