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