xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_296.c (revision 98412b5015f4d494913d9440a5ebd2476000e119)
1 /*	$NetBSD: msg_296.c,v 1.5 2024/06/08 06:37:06 rillig Exp $	*/
2 # 3 "msg_296.c"
3 
4 // Test for message: conversion of negative constant %lld to unsigned type '%s', arg #%d [296]
5 
6 /* lint1-extra-flags: -X 351 */
7 
8 void take_unsigned_int(unsigned int);
9 
10 void
example(void)11 example(void)
12 {
13 	/* expect+1: warning: conversion of negative constant -3 to unsigned type 'unsigned int', arg #1 [296] */
14 	take_unsigned_int(-3);
15 }
16