Test: add UST dl helper test
[lttng-tools.git] / tests / regression / ust / ust-dl / prog.c
diff --git a/tests/regression/ust/ust-dl/prog.c b/tests/regression/ust/ust-dl/prog.c
new file mode 100644 (file)
index 0000000..015eee6
--- /dev/null
@@ -0,0 +1,16 @@
+#include <dlfcn.h>
+
+int main()
+{
+       void *handle;
+       int (*foo)();
+
+       handle = dlopen("libfoo.so", RTLD_LAZY);
+       foo = dlsym(handle, "foo");
+
+       (*foo)();
+
+       dlclose(handle);
+
+       return 0;
+}
This page took 0.023005 seconds and 4 git commands to generate.