xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_205.c (revision e6298b924c5ba98f3a22919b56dab04a87cdbb1c)
1 /*	$NetBSD: msg_205.c,v 1.4 2023/07/07 19:45:22 rillig Exp $	*/
2 # 3 "msg_205.c"
3 
4 // Test for message: switch expression must have integral type [205]
5 
6 /* lint1-extra-flags: -X 351 */
7 
8 /* ARGSUSED */
9 void
example(double x)10 example(double x)
11 {
12 	/* expect+1: error: switch expression must have integral type [205] */
13 	switch (x) {
14 	}
15 }
16