tb0349.pp 477 B

1234567891011121314151617181920212223242526272829303132333435
  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. const somestr : pwidechar = 'blaat';
  10. begin
  11. p:=@c1;
  12. i:=0;
  13. c2:=p[i];
  14. w:='hello';
  15. a:=w;
  16. writeln(a);
  17. if a<>'hello' then
  18. err:=true;
  19. writeln(w);
  20. if w<>'hello' then
  21. err:=true;
  22. p:='';
  23. p:='hello';
  24. writeln(widestring(p));
  25. if widestring(p)<>'hello' then
  26. err:=true;
  27. if err then
  28. halt(1);
  29. end.