Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
valgrind
/
00888885d88a5264711c22074cfd3462020cbee6
/
.
/
memcheck
/
tests
/
badaddrvalue.c
blob: 1bb20474725247c8de63534d645c332dcee04ff0 [
file
] [
log
] [
blame
]
#include
<stdio.h>
#include
<stdlib.h>
int
main
(
void
)
{
char
*
aa
=
malloc
(
8
);
aa
[-
1
]
=
17
;
if
(
aa
[-
1
]
==
17
)
printf
(
"17\n"
);
else
printf
(
"not 17\n"
);
return
0
;
}