Home | History | Annotate | Line # | Download | only in lint1
msg_200.c revision 1.4
      1 /*	$NetBSD: msg_200.c,v 1.4 2023/07/07 19:45:22 rillig Exp $	*/
      2 # 3 "msg_200.c"
      3 
      4 // Test for message: duplicate case in switch: %lu [200]
      5 
      6 /* lint1-extra-flags: -X 351 */
      7 
      8 void
      9 example(unsigned x)
     10 {
     11 	switch (x) {
     12 	case 3:
     13 	/* expect+1: error: duplicate case in switch: 3 [200] */
     14 	case 3:
     15 		break;
     16 	}
     17 }
     18