Fix libnldbl_nonshared.a references to internal libm symbols (bug 23735).
[glibc.git] / dlfcn / bug-atexit1.c
blobfdfb6bc0b7d7257b726e4bcb68c3b448bf96eef9
1 /* Derived from a test case in
2 https://sourceware.org/bugzilla/show_bug.cgi?id=1158. */
3 #include <dlfcn.h>
4 #include <stdio.h>
5 #include <stdlib.h>
7 static int
8 do_test (void)
10 for (int i = 0; i < 2; ++i)
12 void *dso = dlopen ("$ORIGIN/bug-atexit1-lib.so", RTLD_NOW);
13 void (*fn) (void) = (void (*) (void)) dlsym (dso, "foo");
14 fn ();
15 dlclose (dso);
16 puts ("round done");
19 return 0;
22 #define TEST_FUNCTION do_test ()
23 #include "../test-skeleton.c"