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