1 /* $NetBSD: msg_203.c,v 1.3 2021/08/22 13:52:19 rillig Exp $ */ 2 # 3 "msg_203.c" 3 4 /* Test for message: case label must be of type 'int' in traditional C [203] */ 5 6 /* lint1-flags: -tw */ 7 example(x)8example(x) 9 int x; 10 { 11 switch (x) { 12 case (char)3: 13 break; 14 /* expect+1: warning: case label must be of type 'int' in traditional C [203] */ 15 case 4L: 16 break; 17 } 18 } 19