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