fpc/tests/test/tlibrary2.pp
Jonas Maebe a2cf6c4982 * no longer linux-specific naming for library
git-svn-id: trunk@1382 -
2005-10-15 16:33:01 +00:00

35 lines
538 B
ObjectPascal

{ %NEEDLIBRARY }
{ Test program to test linking to fpc library }
{$ifdef win32}
{$define supported}
{$endif win32}
{$ifdef Unix}
{$define supported}
{$endif Unix}
{$ifndef fpc}
{$define supported}
{$endif}
{$ifdef supported}
const
{$ifdef win32}
libname='tlibrary1.dll';
{$else}
libname='tlibrary1';
{$linklib tlibrary1}
{$endif}
procedure test;external libname name 'TestName';
begin
test;
end.
{$else not supported}
begin
Writeln('Dummy test because target does not support libraries');
end.
{$endif not supported}