msg_296.c revision 1.4
1/* $NetBSD: msg_296.c,v 1.4 2023/03/28 14:44:35 rillig Exp $ */ 2# 3 "msg_296.c" 3 4// Test for message: conversion of negative constant to unsigned type, arg #%d [296] 5 6/* lint1-extra-flags: -X 351 */ 7 8void take_unsigned_int(unsigned int); 9 10void 11example(void) 12{ 13 /* expect+1: warning: conversion of negative constant to unsigned type, arg #1 [296] */ 14 take_unsigned_int(-3); 15} 16