Move all C++ tests to cpp.

This commit is contained in:
2014-05-31 22:55:50 +04:00
parent 1c1c6fe543
commit 7cdff553c8
52 changed files with 0 additions and 0 deletions

19
cpp/dlload.cpp Normal file
View File

@@ -0,0 +1,19 @@
#include <dlfcn.h>
#include <stdio.h>
int main ()
{
// void* h1 = dlopen( "/home/vishap/p4/wb/main/stage-g/lib/amd64/libProteus.so", RTLD_LAZY|RTLD_GLOBAL);
void* h1 = dlopen( "/home/vishap/p4/wb/main/stage-g/lib/amd64/libProteus.so", RTLD_NOW|RTLD_GLOBAL);
if ( !h1 ) puts( dlerror() );
printf( "handle1 = 0x%x\n", h1 );
void* h2 = dlopen( "/home/vishap/p4/wb/main/src/icwb/test/libProteus.so", RTLD_LAZY|RTLD_GLOBAL);
if ( !h2 ) puts( dlerror() );
printf( "handle2 = 0x%x\n", h2 );
dlclose(h1);
dlclose(h2);
return 0;
}