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