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: fix get_state_expr() uses of fake_parent
[smatch.git]
/
validation
/
function-attribute.c
blob
2be180c423517c946bd1b5c7d1d5a6d0ca984dc2
1
#define __pure __attribute__((pure))
2
3
4
static
__pure
int
funi
(
int
val
)
5
{
6
return
val
;
7
}
8
9
static
__pure
int
*
funp
(
int
*
ptr
)
10
{
11
return
ptr
;
12
}
13
14
static void
foo
(
int
val
,
int
*
ptr
)
15
{
16
int
nbr
=
funi
(
val
);
17
int
*
res
=
funp
(
ptr
);
18
}
19
20
/*
21
* check-name: function-attribute
22
*/