mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-02 18:58:24 +02:00
* 20 and 29 revisited
This commit is contained in:
parent
e75c927091
commit
ea9f5e89b8
12
tests/tbf0029.pp
Normal file
12
tests/tbf0029.pp
Normal 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.
|
@ -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.
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user