bug-atexit3.c 332 B

123456789101112131415161718
  1. #include <dlfcn.h>
  2. #include <stdio.h>
  3. static int
  4. do_test (void)
  5. {
  6. void *handle = dlopen ("$ORIGIN/bug-atexit3-lib.so", RTLD_LAZY);
  7. if (handle == NULL)
  8. {
  9. printf ("dlopen failed: %s\n", dlerror ());
  10. return 1;
  11. }
  12. dlclose (handle);
  13. return 0;
  14. }
  15. #define TEST_FUNCTION do_test ()
  16. #include "../test-skeleton.c"