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
check_deref: use add_dereference_hook()
[smatch.git]
/
validation
/
expand
/
builtin_constant_inline0.c
blob
d72a211fd26782cb4b27a57355dfda7040008fd6
1
static
inline
int
is_const
(
long
size
)
2
{
3
return
__builtin_constant_p
(
size
) ?
size
:
0
;
4
}
5
6
int
foo
(
void
)
7
{
8
return
is_const
(
42
);
9
}
10
11
/*
12
* check-name: builtin_constant_inline0
13
* check-command: test-linearize -Wno-decl $file
14
*
15
* check-output-start
16
foo:
17
.L0:
18
<entry-point>
19
# call %r1 <- is_const, $42
20
ret.32 $42
21
22
23
* check-output-end
24
*/