Sign in
ara-mdk
/
platform
/
external
/
valgrind
/
f8a3d860be23fa1b89a60ad68ddef672a6683837
/
.
/
main
/
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
;
}