mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2026-01-08 09:21:42 +01:00
20 lines
248 B
ObjectPascal
20 lines
248 B
ObjectPascal
{$ifdef unix}
|
|
uses
|
|
{$ifdef darwin}iosxwstr{$else}cwstring{$endif};
|
|
{$endif unix}
|
|
|
|
var
|
|
w : unicodestring;
|
|
a : ansistring;
|
|
|
|
begin
|
|
a:='A';
|
|
w:=a;
|
|
if w[1]<>#65 then
|
|
halt(1);
|
|
a:=w;
|
|
if a[1]<>'A' then
|
|
halt(1);
|
|
writeln('ok');
|
|
end.
|