Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
valgrind
/
0c5fac809caf7d5e3c13cdff1d7fa61fda1ec477
/
.
/
memcheck
/
tests
/
badaddrvalue.c
blob: 1bb20474725247c8de63534d645c332dcee04ff0 [
file
] [
log
] [
blame
]
sewardj
de4a1d0
2002-03-22 01:27:54 +0000
[
diff
] [
blame
]
1
2
#include
<stdio.h>
3
#include
<stdlib.h>
4
5
int
main
(
void
)
6
{
7
char
*
aa
=
malloc
(
8
);
8
aa
[-
1
]
=
17
;
9
if
(
aa
[-
1
]
==
17
)
10
printf
(
"17\n"
);
else
printf
(
"not 17\n"
);
11
return
0
;
12
}