Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
valgrind
/
00888885d88a5264711c22074cfd3462020cbee6
/
.
/
memcheck
/
tests
/
manuel2.c
blob: 1fc1269e1771fef82d362c81afe41faeefbdf75e [
file
] [
log
] [
blame
]
#include
<stdio.h>
#include
<stdlib.h>
int
main
()
{
int
y
=
0
;
int
*
m
=
malloc
(
sizeof
(
int
));
int
*
x
=
m
[
0
]
+
&
y
;
// we know m[0] will be zero
printf
(
"x = %d\n"
,
*
x
==
0xDEADBEEF
?
99
:
88
);
return
0
;
}