fpc/tests/webtbs/tw24915.pp
2013-10-06 13:08:52 +00:00

20 lines
334 B
ObjectPascal

program err;
{$mode objfpc}{$H+}
uses SysUtils;
function test(const a, b: string): string; inline;
begin
result:=b;
end;
const path: string = 'C:\123456789012345678901234567890\test.txt';
var t: string;
begin
t:=test(ExtractFilePath(path), ExtractFilePath(path));
writeln(stringcodepage(path));
writeln('Path: '+t);
end.