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

source code of glibc/dlfcn/bug-atexit3.c