summaryrefslogtreecommitdiff
path: root/tests/usr.bin/xlint/lint1/msg_200.c
blob: d89d83dfc31c51c1ed76fab7f3e7a4b24decd641 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*	$NetBSD: msg_200.c,v 1.4 2023/07/07 19:45:22 rillig Exp $	*/
# 3 "msg_200.c"

// Test for message: duplicate case in switch: %lu [200]

/* lint1-extra-flags: -X 351 */

void
example(unsigned x)
{
	switch (x) {
	case 3:
	/* expect+1: error: duplicate case in switch: 3 [200] */
	case 3:
		break;
	}
}