mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-10-15 14:46:14 +02:00

- 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 -
22 lines
306 B
ObjectPascal
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.
|