fpc/tests/test/tlib2b.pp
yury cbf370008b * Added %delfiles for proper clean-up.
git-svn-id: branches/targetandroid@23491 -
2013-01-22 14:34:32 +00:00

22 lines
315 B
ObjectPascal

{ %target=linux,android }
{ %needlibrary }
{ %delfiles=tlib2a }
uses dl;
var
hdl : Pointer;
begin
WriteLn('dlopen');
hdl := dlopen('./libtlib2a.so', RTLD_LAZY);
if hdl = nil then
WriteLn(dlerror())
else
begin
WriteLn('dlclose');
dlclose(hdl);
end;
WriteLn('exit');
end.