summaryrefslogtreecommitdiff
path: root/tests/usr.bin/xlint/lint1/msg_109.c
blob: 60ced736f4dc4925ec0e5330269bf91b6552faeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*	$NetBSD: msg_109.c,v 1.6 2023/07/07 19:45:22 rillig Exp $	*/
# 3 "msg_109.c"

// Test for message: void type illegal in expression [109]

/* lint1-extra-flags: -X 351 */

/* ARGSUSED */
int
example(int arg)
{
	/* expect+2: error: void type illegal in expression [109] */
	/* expect+1: warning: function 'example' expects to return value [214] */
	return arg + (void)4;
}