Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

/*	$NetBSD: msg_104.c,v 1.4 2022/06/17 18:54:53 rillig Exp $	*/
# 3 "msg_104.c"

// Test for message: left operand of '->' must be pointer to struct or union, not '%s' [104]

struct point {
	int x, y;
};

/* ARGSUSED */
void
test(struct point pt, struct point *ptr)
{
	/* expect+1: error: left operand of '->' must be pointer to struct or union, not 'struct point' [104] */
	pt->x = 0;
	ptr->y = 0;
}