/* $NetBSD: msg_189.c,v 1.6 2022/06/17 18:54:53 rillig Exp $ */ # 3 "msg_189.c" /* Test for message: assignment of struct/union illegal in traditional C [189] */ /* This message is not used. */ /* lint1-flags: -tw */ struct s { int member; }; void example() { struct s a, b; a.member = 3; b = a; /* message 189 is not triggered anymore */ /* expect-1: warning: 'b' set but not used in function 'example' [191] */ }