repo.or.cz
/
valgrind.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
drd: Add a consistency check
[valgrind.git]
/
memcheck
/
tests
/
describe-block.c
blob
c4080b4c3fec7dd24908ce41643d5867af4766cd
1
#include
"../memcheck.h"
2
3
int
main
()
4
{
5
char
magic_foople_zone
[
0x1000
];
6
(
void
)
VALGRIND_CREATE_BLOCK
(
magic_foople_zone
,
0x1000
,
"magic foople zone"
);
7
(
void
)
VALGRIND_MAKE_MEM_NOACCESS
(
magic_foople_zone
,
0x1000
);
8
magic_foople_zone
[
0
] =
'x'
;
9
return
0
;
10
}