xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_296.c (revision 7d62b00eb9ad855ffcd7da46b41e23feb5476fac)
1 /*	$NetBSD: msg_296.c,v 1.3 2022/06/16 21:24:41 rillig Exp $	*/
2 # 3 "msg_296.c"
3 
4 // Test for message: conversion of negative constant to unsigned type, arg #%d [296]
5 
6 void take_unsigned_int(unsigned int);
7 
8 void
9 example(void)
10 {
11 	/* expect+1: warning: conversion of negative constant to unsigned type, arg #1 [296] */
12 	take_unsigned_int(-3);
13 }
14