xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_221.c (revision aef5eb5f59cdfe8314f1b5f78ac04eb144e44010)
1 /*	$NetBSD: msg_221.c,v 1.5 2022/06/16 21:24:41 rillig Exp $	*/
2 # 3 "msg_221.c"
3 
4 // Test for message: initialization of unsigned with negative constant [221]
5 
6 struct example {
7 	unsigned int a: 5;
8 	unsigned int b: 5;
9 } example_var = {
10     /* expect+1: warning: initialization of unsigned with negative constant [221] */
11     -1,
12     31
13 };
14