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
remove 'Escape' from token character class
[smatch.git]
/
validation
/
kill-casts.c
blob
cf52f2460e87fb5b0e4cd2e386b71cccf1ce88d8
1
extern
void
__abort
(
void
);
2
3
struct
s
{
4
int
elem
:
3
;
5
};
6
7
void
foo
(
struct
s
*
x
);
8
void
foo
(
struct
s
*
x
)
9
{
10
if
(
x
->
elem
==
0
) {
11
if
(
x
->
elem
!=
0
&&
x
->
elem
!=
1
)
12
__abort
();
13
}
14
}
15
16
/*
17
* check-name: kill-casts
18
* check-command: test-linearize $file
19
*
20
* check-output-ignore
21
* check-output-excludes: cast\\.
22
*/