fpc/tests/test/tcpstr26c.pp
Jonas Maebe f539e9158a * small change to r24997: also use the {$modeswitch unicodestrings} state to
determine whether (wide)char->pchar will be preferred over (wide)char ->
    p(wide)char or not (always convert to pchar if mode switch is not active,
    otherwise always to pwidechar). Delphi-compatible + consistent with the
    behaviour added for constant strings in that revision + tests

git-svn-id: branches/cpstrrtl@25430 -
2013-09-06 08:02:59 +00:00

19 lines
231 B
ObjectPascal

{$ifdef fpc}
{$mode delphiunicode}
{$endif}
procedure test(p: pansichar); overload;
begin
writeln('pchar');
halt(1);
end;
procedure test(p: pwidechar); overload;
begin
writeln('pwidechar');
end;
begin
test(#$1234);
end.