Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
valgrind
/
8b662d50e99428ea6b76d44a80ffaaf73eb51584
/
.
/
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
;
}