mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-05 13:49:25 +01:00
*** empty log message ***
This commit is contained in:
parent
ac95600774
commit
1872bac94a
19
tests/test/twide1.pp
Normal file
19
tests/test/twide1.pp
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{$ifdef unix}
|
||||||
|
uses
|
||||||
|
cwstring;
|
||||||
|
{$endif unix}
|
||||||
|
|
||||||
|
var
|
||||||
|
w : widestring;
|
||||||
|
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.
|
||||||
20
tests/test/twide2.pp
Normal file
20
tests/test/twide2.pp
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{$ifdef UNIX}
|
||||||
|
uses
|
||||||
|
cwstring;
|
||||||
|
{$endif UNIX}
|
||||||
|
|
||||||
|
var
|
||||||
|
i : longint;
|
||||||
|
w,w2 : widestring;
|
||||||
|
a : ansistring;
|
||||||
|
|
||||||
|
begin
|
||||||
|
setlength(w,1000);
|
||||||
|
for i:=1 to 1000 do
|
||||||
|
w[i]:=widechar(i);
|
||||||
|
for i:=1 to 10 do
|
||||||
|
begin
|
||||||
|
a:=w;
|
||||||
|
w2:=a;
|
||||||
|
end;
|
||||||
|
end.
|
||||||
Loading…
Reference in New Issue
Block a user