fpc/tests/test/tcpstr9.pp
2015-02-23 22:48:15 +00:00

17 lines
454 B
ObjectPascal

{ %skiptarget=android }
program tcpstr9;
{$mode delphiunicode}
{$apptype console}
{$ifdef unix} uses {$ifdef darwin}iosxwstr{$else}cwstring{$endif}; {$endif}
begin
// this test can be only run with the compiler built right now on the
// same system
if StringCodePage(AnsiString('test')) <> DefaultSystemCodePage then
begin
WriteLn(StringCodePage(AnsiString('test')), ' <> ', DefaultSystemCodePage);
halt(1);
end;
Writeln('ok');
end.