repo.or.cz
/
smatch.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
states: rename unreachable() to is_unreachable()
[smatch.git]
/
validation
/
storage-struct-member.c
blob
6bd958abcbc11ac403938a595d0b602171dcb6fd
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
*/