xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_118.c (revision 9fb66d812c00ebfb445c0b47dea128f32aa6fe96)
1 /*	$NetBSD: msg_118.c,v 1.4 2021/04/06 21:59:58 rillig Exp $	*/
2 # 3 "msg_118.c"
3 
4 /* Test for message: semantics of '%s' change in ANSI C; use explicit cast [118] */
5 
6 /* lint1-flags: -hsw */
7 
8 int
9 int_shl_uint(int i, unsigned int u)
10 {
11 	return i << u;
12 }
13 
14 unsigned
15 uint_shl_ulong(unsigned a, unsigned long ul)
16 {
17 	return a << ul;		/* expect: 118 */
18 }
19