xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_027.c (revision 7d62b00eb9ad855ffcd7da46b41e23feb5476fac)
1 /*	$NetBSD: msg_027.c,v 1.7 2022/06/11 12:24:00 rillig Exp $	*/
2 # 3 "msg_027.c"
3 
4 // Test for message: redeclaration of '%s' [27]
5 
6 extern int identifier(void);
7 
8 /* expect+1: error: redeclaration of 'identifier' with type 'function(void) returning double', expected 'function(void) returning int' [347] */
9 extern double identifier(void);
10 
11 enum {
12 	constant,
13 	/* expect+1: error: redeclaration of 'constant' [27] */
14 	constant,
15 	next
16 };
17