]> git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/dyld_usage_json.dtest/target.c
dyld-851.27.tar.gz
[apple/dyld.git] / testing / test-cases / dyld_usage_json.dtest / target.c
1 #include <dlfcn.h>
2 #include <unistd.h>
3
4 #include "test_support.h"
5 int main(int argc, const char* argv[])
6 {
7 void* handle = dlopen(RUN_DIR "/libfoo.dylib", RTLD_NOW);
8 void *foo = dlsym(handle, "foo");
9 dlclose(handle);
10 return 0;
11 }