tb0349.pp 436 B

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