xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_100.c (revision 82d56013d7b633d116a93943de88e08335357a7c)
1 /*	$NetBSD: msg_100.c,v 1.3 2021/01/31 11:12:07 rillig Exp $	*/
2 # 3 "msg_100.c"
3 
4 // Test for message: unary + is illegal in traditional C [100]
5 
6 /* lint1-flags: -Stw */
7 
8 int
9 unary_plus(int x)
10 {				/* expect: 270 */
11 	return +x;		/* expect: 100 */
12 }
13