8 char modname[sizeof "tst-tlsmod18aXX.so"];
10 for (int i = 0; i < 20; i++)
12 snprintf (modname, sizeof modname, "tst-tlsmod18a%d.so", i);
13 h[i] = dlopen (modname, RTLD_LAZY);
16 printf ("unexpectedly failed to open %s", modname);
21 for (int i = 0; i < 20; i++)
23 int (*fp) (void) = (int (*) (void)) dlsym (h[i], "test");
26 printf ("cannot find test in tst-tlsmod18a%d.so", i);
37 #include <support/test-driver.c>