summaryrefslogtreecommitdiff
path: root/tests/usr.bin/xlint/lint1/msg_273.c
blob: aebb188221f07fb2c12ed4f0f5dceae369f48428 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*	$NetBSD: msg_273.c,v 1.3 2021/08/22 13:45:56 rillig Exp $	*/
# 3 "msg_273.c"

/* Test for message: bit-field type '%s' invalid in ANSI C [273] */

/* lint1-flags: -sw */

struct bit_fields {
	int plain_int: 3;
	unsigned int unsigned_int: 3;
	signed int signed_int: 3;
	/* expect+1: warning: bit-field type 'unsigned char' invalid in ANSI C [273] */
	unsigned char unsigned_char: 3;
};