fpc/tests/test/tcpstr9.pp
paul 41e85bc36a compiler:
- emit ansistring constants with compiler codepage if no codepage is explicitly set
  - set default compiler codepage to default system codepage (delphi compatible)
  + tests

git-svn-id: trunk@19145 -
2011-09-19 01:04:56 +00:00

14 lines
308 B
ObjectPascal

program tcpstr9;
{$apptype console}
begin
// this test can be only run with the compiler built right now on the
// same system
if StringCodePage('test') <> DefaultSystemCodePage then
begin
WriteLn(StringCodePage('test'), ' <> ', DefaultSystemCodePage);
halt(1);
end;
Writeln('ok');
end.