fpc/tests/test/tcpstransistrcompareequal.pp
paul 8b0cb2c1d5 compiler:
- don't parse '(' token after the type declaration inside the type block
  - replace parse of "string<codepage>" to "type AnsiString(codepage)" for delphi compatibility
  - fix tests to use "type AnsiString(codepage)"

git-svn-id: trunk@19148 -
2011-09-19 04:11:57 +00:00

22 lines
306 B
ObjectPascal

uses
{$ifdef unix}
cwstring,
{$endif unix}
SysUtils;
type
ts850 = type AnsiString(850);
ts1251 = type AnsiString(1251);
var
a850:ts850;
a1251 : ts1251;
au : utf8string;
begin
au := #$00AE#$00A7;
a850 := au;
a1251 := au;
if (a850<>a1251) then
halt(1);
writeln('ok');
end.