4 static const char obj[] = "testobj1.so";
9 void *d = dlopen (obj, RTLD_LAZY);
14 printf ("cannot load %s: %s\n", obj, dlerror ());
18 for (n = 0; n < 10000; ++n)
19 if (dlsym (d, "does not exist") != NULL)
21 puts ("dlsym() did not fail");
24 else if (dlerror () == NULL)
26 puts ("dlerror() didn't return a string");