1234567891011121314151617181920212223242526272829303132 |
- { %VERSION=1.1}
- var
- p : pwidechar;
- c1,c2 : widechar;
- i : longint;
- a : ansistring;
- w : widestring;
- err : boolean;
- 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.
|