xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_195.c (revision 3117ece4fc4a4ca4489ba793710b60b0d26bab6c)
1 /*	$NetBSD: msg_195.c,v 1.4 2023/07/07 19:45:22 rillig Exp $	*/
2 # 3 "msg_195.c"
3 
4 // Test for message: case not in switch [195]
5 
6 /* lint1-extra-flags: -X 351 */
7 
8 int
9 example(int x)
10 {
11 	/* expect+1: error: case not in switch [195] */
12 case 1:
13 	/* expect+1: error: case not in switch [195] */
14 case 2:
15 	return x;
16 }
17