git-svn-id: trunk@8267 -
This commit is contained in:
Jonas Maebe 2007-08-12 11:01:53 +00:00
parent 123362235b
commit abd3ce841a
2 changed files with 41 additions and 0 deletions

1
.gitattributes vendored
View File

@ -8343,6 +8343,7 @@ tests/webtbs/tw8975a.pp svneol=native#text/plain
tests/webtbs/tw8977.pp svneol=native#text/plain
tests/webtbs/tw9054.pp svneol=native#text/plain
tests/webtbs/tw9059.pp svneol=native#text/plain
tests/webtbs/tw9073.pp svneol=native#text/plain
tests/webtbs/tw9076.pp svneol=native#text/plain
tests/webtbs/tw9076a.pp svneol=native#text/plain
tests/webtbs/tw9085.pp svneol=native#text/plain

40
tests/webtbs/tw9073.pp Normal file
View File

@ -0,0 +1,40 @@
{$mode objfpc}
uses
{$ifdef unix}
cthreads,
{$endif}
SysUtils, Classes;
type
tc = class(tthread)
procedure execute; override;
end;
var
caught: boolean;
procedure tc.execute;
type
plongint = ^longint;
var
p: plongint;
begin
p:=nil;
try
writeln(p^);
except
caught:=true;
end;
end;
var
c: tc;
begin
caught:=false;
c:=tc.create(false);
c.waitfor;
c.free;
halt(ord(not caught));
end.