1 | #include <dlfcn.h> |
---|---|
2 | |
3 | #define main array1_main |
4 | #include "tst-array1.c" |
5 | #undef main |
6 | |
7 | int |
8 | main (void) |
9 | { |
10 | void *handle = dlopen (file: "tst-array2dep.so", RTLD_LAZY); |
11 | |
12 | array1_main (); |
13 | |
14 | if (handle != NULL) |
15 | dlclose (handle: handle); |
16 | |
17 | return 0; |
18 | } |
19 |