mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-06 08:12:42 +02:00
17 lines
220 B
Plaintext
17 lines
220 B
Plaintext
Program test;
|
|
var
|
|
t: TObject;
|
|
i: IUnknown;
|
|
begin
|
|
t := TObject.Create;
|
|
try
|
|
try
|
|
i := t;
|
|
except
|
|
writeln('Expected Exception: Interface not supported');
|
|
end;
|
|
finally
|
|
t.Free;
|
|
end;
|
|
end.
|