summaryrefslogtreecommitdiff
path: root/tests/usr.bin/xlint/lint1/msg_221.c
blob: fa1d7593c9e98823e9bffa21e5880b561520170a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*	$NetBSD: msg_221.c,v 1.6 2023/03/28 14:44:35 rillig Exp $	*/
# 3 "msg_221.c"

// Test for message: initialization of unsigned with negative constant [221]

/* lint1-extra-flags: -X 351 */

struct example {
	unsigned int a: 5;
	unsigned int b: 5;
} example_var = {
    /* expect+1: warning: initialization of unsigned with negative constant [221] */
    -1,
    31
};