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
helper: strip out the byte swaps in strip_expr()
[smatch.git]
/
validation
/
struct-size1.c
blob
cf956a41ca845c463c4f93a16053c5e36a8ff10f
1
struct
A
;
2
struct
B
{
3
struct
A
*
pA
;
4
};
5
struct
C
;
6
struct
E
{
7
struct
A
**
pA
;
8
struct
C
*
pC
;
9
};
10
static void
f
(
struct
E
*
pE
,
struct
B
*
pB
)
11
{
12
pB
->
pA
=
pE
->
pA
[
0
];
13
}
14
static const struct
{
int
x
; }
foo
[] = {{
1
}};
15
struct
C
{
16
int
bar
[(
sizeof
foo
/
sizeof
foo
[
0
])];
17
};
18
19
/*
20
* check-name: struct size
21
*/