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
db/insert_manual_states.pl: remove debug output
[smatch.git]
/
validation
/
optim
/
canonical-arg.c
blob
a8ecc9bd0083c84a5920f647c38a11d1324f1b76
1
int
def
(
void
);
2
3
int
canon_arg_arg
(
int
a
,
int
b
)
4
{
5
return
(
a
+
b
) == (
b
+
a
);
6
}
7
8
int
canon_arg_reg
(
int
a
)
9
{
10
int
b
=
def
();
11
return
(
a
+
b
) == (
b
+
a
);
12
}
13
14
/*
15
* check-name: canonical-arg
16
* check-command: test-linearize -Wno-decl $file
17
*
18
* check-output-ignore
19
* check-output-returns: 1
20
*/