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