mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 17:47:56 +02:00
23 lines
417 B
ObjectPascal
23 lines
417 B
ObjectPascal
{ %target=win32,win64,wince,darwin,linux,freebsd,solaris,beos,aix,android,haiku }
|
|
{ %needlibrary }
|
|
{ %delfiles=tw16949a }
|
|
|
|
program ptest;
|
|
|
|
{$ifdef fpc}{$mode objfpc}{$H+}{$endif fpc}
|
|
|
|
const
|
|
{$if defined(windows) or defined(mswindows)}
|
|
libname='tw16949a.dll';
|
|
{$else}
|
|
libname='tw16949a';
|
|
{$linklib tw16949a}
|
|
{$ifend}
|
|
|
|
function foo: LongInt; cdecl; external libname;
|
|
|
|
begin
|
|
if foo<>12345 then
|
|
halt(1);
|
|
end.
|