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