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