1 /* $NetBSD: msg_189.c,v 1.4 2021/04/09 20:12:01 rillig Exp $ */ 2 # 3 "msg_189.c" 3 4 /* Test for message: assignment of struct/union illegal in traditional C [189] */ 5 6 /* lint1-flags: -tw */ 7 8 struct s { 9 int member; 10 }; 11 12 void 13 example() 14 { 15 struct s a, b; 16 17 a.member = 3; 18 b = a; /* message 189 is not triggered anymore */ 19 /* expect-1: 'b' set but not used in function 'example' */ 20 } 21