* 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 !! } { this program need GPM !! }
{$ifdef linux}
uses uses
Gpm; Gpm;
{$endif def linux}
var var
Conn: TGPMConnect; Conn: TGPMConnect;
@ -25,4 +27,7 @@ begin
end; end;
end; end;
GPM_Close; GPM_Close;
{$else def linux}
begin
{$endif def linux}
end. end.

View File

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