9 static const char modname[] = "tst-tlsmod2.so";
12 int (*fp) (int, int *);
15 h = dlopen (modname, RTLD_LAZY);
18 printf ("cannot open '%s': %s\n", modname, dlerror ());
22 fp = dlsym (h, "in_dso");
25 printf ("cannot get symbol 'in_dso': %s\n", dlerror ());
29 result |= fp (0, NULL);
31 foop = dlsym (h, "foo");
34 printf ("cannot get symbol 'foo' the second time: %s\n", dlerror ());
49 #include <support/test-driver.c>