repo.or.cz
/
valgrind.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
drd/tests/sem_open: Change the semaphore name (#331839)
[valgrind.git]
/
memcheck
/
tests
/
badloop.c
blob
8780cf7f832783974228c697d6d8b3449b21edbf
1
2
#include <stdio.h>
3
4
int
main
(
void
)
5
{
6
int
a
[
5
];
7
int
i
,
s
;
8
a
[
0
] =
a
[
1
] =
a
[
3
] =
a
[
4
] =
0
;
9
s
=
0
;
10
for
(
i
=
0
;
i
<
5
;
i
++)
11
s
+=
a
[
i
];
12
if
(
s
==
377
)
13
printf
(
"sum is %d
\n
"
,
s
);
14
return
0
;
15
}