msg_049.c revision 1.3
1/*	$NetBSD: msg_049.c,v 1.3 2021/08/27 20:16:50 rillig Exp $	*/
2# 3 "msg_049.c"
3
4/* Test for message: anonymous struct/union members is a C9X feature [49] */
5
6/* lint1-flags: -sw */
7
8/*
9 * FIXME: C99 does not allow anonymous struct/union members, that's a GCC
10 * extension that got incorporated into C11.
11 */
12
13struct {
14	unsigned int flag: 1;
15
16	/*
17	 * This is an anonymous struct/union member, but that's not what
18	 * message 49 is about.
19	 */
20	unsigned int :0;
21
22	union {
23		int int_value;
24		void *pointer_value;
25	};
26	/* expect-1: warning: anonymous struct/union members is a C9X feature [49] */
27} s;
28