mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 06:08:22 +02:00
17 lines
252 B
ObjectPascal
17 lines
252 B
ObjectPascal
{ %FAIL }
|
|
{ Old file: tbf0029.pp }
|
|
{ tests typeof(object type) OK 0.99.1 (FK) }
|
|
|
|
type
|
|
TA = object
|
|
end;
|
|
|
|
var
|
|
P: Pointer;
|
|
|
|
begin
|
|
{ must fail on compilation because
|
|
TA has no VMT }
|
|
P := pointer(TypeOf(TA));
|
|
end.
|