xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_104.c (revision 7d62b00eb9ad855ffcd7da46b41e23feb5476fac)
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 
6 struct point {
7 	int x, y;
8 };
9 
10 /* ARGSUSED */
11 void
12 test(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