mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 10:09:20 +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 !! }
|
{ 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.
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user