Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
valgrind
/
7d9f94dda63c0e604774f491ed6b3decbf5c3ce5
/
.
/
memcheck
/
tests
/
badloop.c
blob: 8780cf7f832783974228c697d6d8b3449b21edbf [
file
] [
log
] [
blame
]
#include
<stdio.h>
int
main
(
void
)
{
int
a
[
5
];
int
i
,
s
;
a
[
0
]
=
a
[
1
]
=
a
[
3
]
=
a
[
4
]
=
0
;
s
=
0
;
for
(
i
=
0
;
i
<
5
;
i
++)
s
+=
a
[
i
];
if
(
s
==
377
)
printf
(
"sum is %d\n"
,
s
);
return
0
;
}