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