fpc/tests/webtbs/tw12987b.pp
pierre e7dcc27cd9 Add popuperr unit on tests
git-svn-id: trunk@16759 -
2011-01-13 14:19:52 +00:00

26 lines
443 B
ObjectPascal

{ %target=win32,win64,wince,os2 }
{ %needlibrary }
uses
popuperr;
procedure test;external 'tw12987a' name 'test';
function ThreadTest(p : pointer) : PtrInt;
begin
test;
end;
var
t1,t2,t3 : TThreadID;
begin
t1:=BeginThread(@ThreadTest);
t2:=BeginThread(@ThreadTest);
t3:=BeginThread(@ThreadTest);
WaitForThreadTerminate(t1,0);
WaitForThreadTerminate(t2,0);
WaitForThreadTerminate(t3,0);
writeln('Finished');
end.