1 /* This exercises the code that was causing this bug:
3 valgrind: vg_cachesim.c:389 (get_BBCC): Assertion `((Bool)0) == remove'
6 in Cachegrind 1.0.0 and 1.0.1, that was caused by unloading symbols before
7 invalidating translations.
14 int main(int argc
, char **argv
) {
16 void (*myprint
)(void);
19 handle
= dlopen ("./myprint.so", RTLD_LAZY
);
21 fputs (dlerror(), stderr
);
25 myprint
= dlsym(handle
, "myprint");
26 if ((error
= dlerror()) != NULL
) {
27 fprintf (stderr
, "%s\n", error
);
33 /* Assertion failure was happening here */