1 /* $NetBSD: msg_328.c,v 1.4 2023/07/07 19:45:22 rillig Exp $ */ 2 # 3 "msg_328.c" 3 4 // Test for message: union cast is a GCC extension [328] 5 6 /* lint1-flags: -Sw -X 351 */ 7 8 union target { 9 int b; 10 }; 11 12 void foo(void)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