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
Ignore casts. foo((int *)&bar) is the same as foo(&bar) to this script.
[smatch.git]
/
validation
/
inline_compound_literals.c
blob
649d42ab38aa76cea1e1025174ef5d650ccc70c9
1
struct
foo
{
2
int
x
;
3
};
4
5
static
inline
void
baz
(
void
)
6
{
7
(
struct
foo
) { .
x
=
0
};
8
}
9
10
static void
barf
(
void
)
11
{
12
baz
();
13
}
14
15
static void
foo
(
void
)
16
{
17
baz
();
18
}