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