mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-18 04:19:30 +02:00
27 lines
367 B
ObjectPascal
27 lines
367 B
ObjectPascal
{ %fail }
|
|
|
|
{$ifdef fpc}{$mode objfpc}{$endif}
|
|
type
|
|
tmyclass = class
|
|
function f2 : ansistring;
|
|
function f : widestring;
|
|
procedure p(var v);
|
|
end;
|
|
|
|
procedure tmyclass.p(var v);
|
|
begin
|
|
end;
|
|
|
|
function tmyclass.f2 : ansistring;
|
|
begin
|
|
p(pchar(result));
|
|
end;
|
|
|
|
function tmyclass.f : widestring;
|
|
begin
|
|
p(pwidechar(result));
|
|
end;
|
|
|
|
begin
|
|
end.
|