2 /* Check for correct handling of nested scopes in a zero-biased
5 /* Relevant compile flags are:
7 -Wall -g -I$prefix/include/valgrind
9 eg -Wall -g -I`pwd`/Inst/include/valgrind
15 #include "memcheck/memcheck.h"
17 /* Cause memcheck to complain about the address "a" and so to print
18 its best guess as to what "a" actually is. a must be
21 void croak ( void* aV
)
24 char* undefp
= malloc(1);
28 (void) VALGRIND_CHECK_MEM_IS_DEFINED(a
, 1);
42 { struct { double foo
; float bar
; } var
;
43 croak ( 2 + (char*)&var
.bar
);
46 croak( 1 + (char*)&var
);