msg_104.c revision 1.3
11.3Srillig/* $NetBSD: msg_104.c,v 1.3 2021/07/04 17:01:58 rillig Exp $ */ 21.1Srillig# 3 "msg_104.c" 31.1Srillig 41.3Srillig// Test for message: left operand of '->' must be pointer to struct or union, not '%s' [104] 51.1Srillig 61.3Srilligstruct point { 71.3Srillig int x, y; 81.3Srillig}; 91.3Srillig 101.3Srillig/* ARGSUSED */ 111.3Srilligvoid 121.3Srilligtest(struct point pt, struct point *ptr) 131.3Srillig{ 141.3Srillig /* expect+1: left operand of '->' must be pointer to struct or union, not 'struct point' [104] */ 151.3Srillig pt->x = 0; 161.3Srillig ptr->y = 0; 171.3Srillig} 18