aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/storage-struct-member.c
blob: 6bd958abcbc11ac403938a595d0b602171dcb6fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
int foo(a)
	register int a;
{
	return a;
}

struct s {
	register int a;
};

/*
 * check-name: storage in struct member
 * check-command: sparse -Wno-decl $file
 *
 * check-known-to-fail
 * check-error-start
storage-struct-member.c:2:9: warning: non-ANSI definition of function 'foo'
storage-struct-member.c:8:9: error: storage specifier in structure definition'
 * check-error-end
 */