msg_315.c revision 1.4
1/* $NetBSD: msg_315.c,v 1.4 2023/03/28 14:44:35 rillig Exp $ */ 2# 3 "msg_315.c" 3 4// Test for message: GCC style struct or union member name in initializer [315] 5 6/* lint1-flags: -Sw -X 351 */ 7 8struct point { 9 int x, y; 10} p = { 11 /* expect+1: warning: GCC style struct or union member name in initializer [315] */ 12 x: 3, 13 /* expect+1: warning: GCC style struct or union member name in initializer [315] */ 14 y: 4, 15}; 16