xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_195.c (revision 7d62b00eb9ad855ffcd7da46b41e23feb5476fac)
1 /*	$NetBSD: msg_195.c,v 1.3 2022/06/16 16:58:36 rillig Exp $	*/
2 # 3 "msg_195.c"
3 
4 // Test for message: case not in switch [195]
5 
6 int
7 example(int x)
8 {
9 	/* expect+1: error: case not in switch [195] */
10 case 1:
11 	/* expect+1: error: case not in switch [195] */
12 case 2:
13 	return x;
14 }
15