summaryrefslogtreecommitdiff
path: root/tests/usr.bin/xlint/lint1/msg_100.c
blob: 8f68df74706faf1eedd8749d08603407f1c6ed46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*	$NetBSD: msg_100.c,v 1.6 2022/06/20 21:13:36 rillig Exp $	*/
# 3 "msg_100.c"

/* Test for message: unary '+' is illegal in traditional C [100] */

/* lint1-flags: -tw */

int
unary_plus(x)
	int x;
{
	/* expect+1: warning: unary '+' is illegal in traditional C [100] */
	return +x;
}