1 int foo(a)
2 register int a;
3 {
4 return a;
5 }
6
7 struct s {
8 register int a;
9 };
10
11 /*
12 * check-name: storage in struct member
13 * check-command: sparse -Wno-decl $file
14 *
15 * check-known-to-fail
16 * check-error-start
17 storage-struct-member.c:2:9: warning: non-ANSI definition of function 'foo'
18 storage-struct-member.c:8:9: error: storage specifier in structure definition'
19 * check-error-end
20 */