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
unwind: use the shared success_fail_return() function
[smatch.git]
/
validation
/
bug-bad-type.c
blob
0e00efefa149595d3233e0c52034dba5bb84d71f
1
struct
s
{
2
int
i
;
3
};
4
5
long
a
;
6
void
foo
(
void
)
7
{
8
(
struct
s
) { .
i
= (
foo
-
a
), };
9
}
10
11
/*
12
* check-name: bug-bad-type
13
*
14
* check-error-start
15
bug-bad-type.c:5:6: warning: symbol 'a' was not declared. Should it be static?
16
bug-bad-type.c:8:32: error: arithmetics on pointers to functions
17
* check-error-end
18
*/