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

// Test for message: function '%s' has illegal storage class [94]

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

/* expect+2: error: illegal storage class [8] */
register int
global_example(int arg)
{
	/* expect+1: error: function 'register_example' has illegal storage class [94] */
	register int register_example(int);

	return arg;
}