repo.or.cz
/
official-gcc
/
graphite-test-results.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix unused warnings.
[official-gcc/graphite-test-results.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
20000313-1.c
blob
5c9a5569bdc37aa3b17b07d49cddaabc1472b311
1
unsigned int
buggy
(
unsigned int
*
param
)
2
{
3
unsigned int
accu
,
zero
=
0
,
borrow
;
4
accu
= - *
param
;
5
borrow
= - (
accu
>
zero
);
6
*
param
+=
accu
;
7
return
borrow
;
8
}
9
10
int
main
(
void
)
11
{
12
unsigned int
param
=
1
;
13
unsigned int
borrow
=
buggy
(&
param
);
14
15
if
(
param
!=
0
)
16
abort
();
17
if
(
borrow
+
1
!=
0
)
18
abort
();
19
return
0
;
20
}