xref: /llvm-project/lldb/test/API/functionalities/dlopen_other_executable/main.c (revision 2622c5e212646d1c8d6a43444d7c5b551f0221ad)
1 #include <dlfcn.h>
2 #include <assert.h>
3 
main()4 int main() {
5   int i = 0; // break here
6   // dlopen the 'other' test executable.
7   int h = (int) dlopen("other", RTLD_LAZY);
8   assert(h && "dlopen failed?");
9   return i; // break after dlopen
10 }
11