atomic_inc_dec: improve how inc/dec is recorded in the DB
[smatch.git] / validation / storage-struct-member.c
blob6bd958abcbc11ac403938a595d0b602171dcb6fd
1 int foo(a)
2 register int a;
4 return a;
7 struct s {
8 register int a;
9 };
12 * check-name: storage in struct member
13 * check-command: sparse -Wno-decl $file
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