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
param_key: use get_name_sym_from_key() instead of return_state_to_var_sym()
[smatch.git]
/
validation
/
inline_base0.c
blob
517ee972ee05629adc48ff28ab40a74cf3a93794
1
static
inline
int
add
(
int
a
,
int
b
)
2
{
3
return
a
+
b
;
4
}
5
6
int
foo0
(
int
x
,
int
y
)
7
{
8
return
add
(
x
,
y
);
9
}
10
11
int
foo1
(
int
x
)
12
{
13
return
add
(
x
,
1
);
14
}
15
16
int
foo2
(
void
)
17
{
18
return
add
(
1
,
2
);
19
}
20
21
/*
22
* check-name: inline_base0
23
* check-command: test-linearize -Wno-decl $file
24
*
25
* check-output-start
26
foo0:
27
.L0:
28
<entry-point>
29
add.32 %r5 <- %arg1, %arg2
30
ret.32 %r5
31
32
33
foo1:
34
.L3:
35
<entry-point>
36
add.32 %r10 <- %arg1, $1
37
ret.32 %r10
38
39
40
foo2:
41
.L6:
42
<entry-point>
43
ret.32 $3
44
45
46
* check-output-end
47
*/