msg_104.c revision 1.4
1/*	$NetBSD: msg_104.c,v 1.4 2022/06/17 18:54:53 rillig Exp $	*/
2# 3 "msg_104.c"
3
4// Test for message: left operand of '->' must be pointer to struct or union, not '%s' [104]
5
6struct point {
7	int x, y;
8};
9
10/* ARGSUSED */
11void
12test(struct point pt, struct point *ptr)
13{
14	/* expect+1: error: left operand of '->' must be pointer to struct or union, not 'struct point' [104] */
15	pt->x = 0;
16	ptr->y = 0;
17}
18