NetBSD/tests/usr.bin/xlint/lint1/msg_027.c

19 lines
465 B
C

/* $NetBSD: msg_027.c,v 1.8 2023/03/28 14:44:34 rillig Exp $ */
# 3 "msg_027.c"
// Test for message: redeclaration of '%s' [27]
/* lint1-extra-flags: -X 351 */
extern int identifier(void);
/* expect+1: error: redeclaration of 'identifier' with type 'function(void) returning double', expected 'function(void) returning int' [347] */
extern double identifier(void);
enum {
constant,
/* expect+1: error: redeclaration of 'constant' [27] */
constant,
next
};