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