fpc/tests/webtbs/tw3964b.pp
florian 8b48127b2c * as shared libraries without glibc on linux currently don't work, link those tests
on current fpc versions and linux always against glibc, so the shared library handling is tested
2024-09-19 22:57:45 +02:00

25 lines
359 B
ObjectPascal

{ %needlibrary }
{ %target=linux,haiku }
{$mode objfpc}
{$if (FPC_FULLVERSION<=30301) and defined(linux)}
uses
initc;
{$endif (FPC_FULLVERSION<=30301) and defined(linux)}
{$linklib tw3964a}
function testfunc : longint;
begin
result:=1234;
end;
function f : longint;external name 'f';
exports
testfunc name 'testfunc';
begin
writeln(f);
end.