root/tests/usr.bin/xlint/lint1/msg_049.c
/*      $NetBSD: msg_049.c,v 1.6 2023/03/28 14:44:34 rillig Exp $       */
# 3 "msg_049.c"

/* Test for message: anonymous struct/union members is a C11 feature [49] */

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

struct {
        unsigned int flag: 1;

        /*
         * This is an anonymous struct/union member, but that's not what
         * message 49 is about.
         */
        unsigned int :0;

        union {
                int int_value;
                void *pointer_value;
        };
        /* expect-1: warning: anonymous struct/union members is a C11 feature [49] */
} s;