| 20 | } |
| 21 | |
| 22 | static void test_order1() { |
| 23 | void* handle = open_lib(); |
| 24 | |
| 25 | g_one = dlsym(handle, "one"); |
| 26 | g_two = dlsym(handle, "two"); |
| 27 | g_three = dlsym(handle, "three"); |
| 28 | |
| 29 | assert(g_one() == 1); |
| 30 | assert(g_two() == 2); |
| 31 | assert(g_three() == 3); |
| 32 | } |
| 33 | |
| 34 | static void test_order2() { |
| 35 | void* handle = open_lib(); |