fpc/tests/webtbs/tw13628b.pp
Jonas Maebe dd55947b4b - disabled jump tables for x86_64, because they cause various kinds of
crashes with dynamic libraries (mantis #13628 and related bugs)

git-svn-id: trunk@13073 -
2009-05-01 14:54:38 +00:00

30 lines
435 B
ObjectPascal

{ %needlibrary }
program loadmodule;
uses
dynlibs;
const
{$ifdef unix}
{$ifdef darwin}
libname = './libtw13628a.dylib';
{$else darwin}
libname = './libtw13628a.so';
{$endif darwin}
{$endif unix}
{$ifdef windows}
libname = 'tw13628a.dll';
{$endif windows}
var
hdl: TLibHandle;
begin
hdl := loadlibrary(libname);
if (hdl=nilhandle) then
halt(1);
if not UnloadLibrary(hdl) then
halt(2);;
end.