1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
{$ifdef fpc} {$mode delphi} {$endif} procedure test(p: pchar); overload; begin writeln('pchar'); end; procedure test(p: pwidechar); overload; begin writeln('pwidechar'); halt(1); end; begin test('a'); end.