mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-06 01:47:59 +02:00
20 lines
188 B
ObjectPascal
20 lines
188 B
ObjectPascal
{ %opt=-O2 }
|
|
{$mode delphi}
|
|
|
|
type
|
|
tc1 = class
|
|
end;
|
|
|
|
tc2 = class
|
|
end;
|
|
|
|
var
|
|
c: tobject;
|
|
begin
|
|
c:=tc2.create;
|
|
if (c is tc1) or
|
|
(c is tc2) then
|
|
halt(0);
|
|
halt(1);
|
|
end.
|