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
locking: tons of locks were ignored because of changes in smatch_helper.c
[smatch.git]
/
validation
/
bitfields.c
blob
16aa16d1c1c07f6cd307c83c8452dea0f47143c1
1
/*
2
* Al Viro points out that we don't
3
* do bitfield -> integer promotions
4
* for array dereferences
5
*
6
* "warning: a.c:16:10: incompatible types for operation"
7
*/
8
static struct
{
9
int
x
:
4
;
10
}
y
;
11
12
extern
int
a
[];
13
14
static int
b
(
void
)
15
{
16
return
a
[
y
.
x
];
17
}
18