18 lines
301 B
C
18 lines
301 B
C
/* $NetBSD: msg_199.c,v 1.4 2023/07/09 11:01:27 rillig Exp $ */
|
|
# 3 "msg_199.c"
|
|
|
|
// Test for message: duplicate case '%ld' in switch [199]
|
|
|
|
/* lint1-extra-flags: -X 351 */
|
|
|
|
void
|
|
example(int x)
|
|
{
|
|
switch (x) {
|
|
case 3:
|
|
/* expect+1: error: duplicate case '3' in switch [199] */
|
|
case 3:
|
|
break;
|
|
}
|
|
}
|