xref: /llvm-project/lldb/test/API/functionalities/dlopen_other_executable/main.c (revision 2622c5e212646d1c8d6a43444d7c5b551f0221ad)
116926115SRaphael Isemann #include <dlfcn.h>
216926115SRaphael Isemann #include <assert.h>
316926115SRaphael Isemann 
main()416926115SRaphael Isemann int main() {
516926115SRaphael Isemann   int i = 0; // break here
616926115SRaphael Isemann   // dlopen the 'other' test executable.
7*2622c5e2SAugusto Noronha   int h = (int) dlopen("other", RTLD_LAZY);
816926115SRaphael Isemann   assert(h && "dlopen failed?");
916926115SRaphael Isemann   return i; // break after dlopen
1016926115SRaphael Isemann }
11