fpc/tests/webtbs/uw15909.pp
Jonas Maebe 45d25bbe77 * fixed storing/loading widestring constant nodes into/from ppu files
(mantis #15909)
  * fixed storing/loading widestring constants into/from token streams
  * made storing/loading widestring constant nodes into/from ppu files
    endian safe

git-svn-id: trunk@15017 -
2010-03-14 13:27:00 +00:00

32 lines
514 B
ObjectPascal

unit uw15909;
{$mode Delphi}
{$inline on}
interface
procedure foo(const s: widestring; const n: integer); inline;
function bar(const s, fmt: widestring): integer;
implementation
procedure foo(const s: widestring; const n: integer);
begin
bar(s, '%d')
end;
function bar(const s, fmt: widestring): integer;
begin
if (s<>'abc') or
(fmt<>'%d') then
begin
writeln('"',s,'"');
halt(1);
end;
result:=0;
end;
end.