blob: f1bdd8322d1dc2f6f84dc52a7180ab0d71d0e66c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
{ %VERSION=1.1}
var
p : pwidechar;
c1,c2 : widechar;
i : longint;
a : ansistring;
w : widestring;
err : boolean;
const somestr : pwidechar = 'blaat';
begin
p:=@c1;
i:=0;
c2:=p[i];
w:='hello';
a:=w;
writeln(a);
if a<>'hello' then
err:=true;
writeln(w);
if w<>'hello' then
err:=true;
p:='';
p:='hello';
writeln(widestring(p));
if widestring(p)<>'hello' then
err:=true;
if err then
halt(1);
end.
|