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_114.c,v 1.6 2022/06/21 21:18:30 rillig Exp $	*/
# 3 "msg_114.c"

// Test for message: %soperand of '%s' must be lvalue [114]

/* ARGSUSED */
void
example(int a)
{
	/* expect+1: error: operand of 'x++' must be lvalue [114] */
	3++;

	/*
	 * Before tree.c 1.137 from 2021-01-09, trying to increment an array
	 * aborted lint with 'common/tyname.c, 190: tspec_name(0)'.
	 *
	 * See msg_108.c for more details.
	 */
	/* expect+1: error: operand of 'x++' has invalid type 'array[7] of char' [108] */
	"string"++;

	/* expect+1: error: operand of 'x++' must be lvalue [114] */
	(a + a)++;
}