mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-02 08:49:42 +01: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 -
18 lines
235 B
ObjectPascal
18 lines
235 B
ObjectPascal
uses
|
|
{$ifdef unix}
|
|
cwstring,
|
|
{$endif unix}
|
|
SysUtils;
|
|
|
|
type
|
|
ts866 = type AnsiString(866);
|
|
var
|
|
a866 : ts866;
|
|
begin
|
|
a866 := '123';
|
|
SetLength(a866,10);
|
|
if (StringCodePage(a866) <> 866) then
|
|
halt(1);
|
|
WriteLn('ok');
|
|
end.
|