* 20 and 29 revisited

This commit is contained in:
pierre 1999-01-18 15:39:35 +00:00
parent e75c927091
commit ea9f5e89b8
3 changed files with 27 additions and 0 deletions

12
tests/tbf0029.pp Normal file
View File

@ -0,0 +1,12 @@
type
TA = object
end;
var
P: Pointer;
begin
{ must fail on compilation because
TA has no VMT }
P := pointer(TypeOf(TA));
end.

View File

@ -1,7 +1,9 @@
{ this program need GPM !! }
{$ifdef linux}
uses
Gpm;
{$endif def linux}
var
Conn: TGPMConnect;
@ -25,4 +27,7 @@ begin
end;
end;
GPM_Close;
{$else def linux}
begin
{$endif def linux}
end.

View File

@ -1,7 +1,17 @@
type
TA = object
constructor init;
procedure test;virtual;
end;
constructor TA.init;
begin
end;
procedure TA.test;
begin
end;
var
P: Pointer;