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
states: rename unreachable() to is_unreachable()
[smatch.git]
/
validation
/
function-attribute-void-ptr.c
blob
0092b63c3f293b8b9c708980817aba5f95904e1e
1
#define __noreturn __attribute__((__noreturn__))
2
3
void
fun
(
void
*);
4
void
__noreturn
die
(
void
);
5
6
static void
foo
(
void
)
7
{
8
void
*
ptr
=
die
;
9
fun
(
die
);
10
}
11
12
/*
13
* check-name: function-attribute-void-ptr
14
*/