msg_328.c revision 1.3
1/* $NetBSD: msg_328.c,v 1.3 2021/08/03 20:57:06 rillig Exp $ */ 2# 3 "msg_328.c" 3 4// Test for message: union cast is a GCC extension [328] 5 6/* lint1-flags: -Sw */ 7 8union target { 9 int b; 10}; 11 12void 13foo(void) 14{ 15 union target arg = { 123 }; 16 /* expect+1: error: union cast is a GCC extension [328] */ 17 arg = (union target)3; 18 arg.b++; 19} 20