fpc/tests/tbs/tb0541.pp
2007-08-28 09:53:29 +00:00

15 lines
221 B
ObjectPascal

const
TestStr: widestring = 'Test';
var
buf: array[0..10] of widechar;
s: widestring;
begin
Move(TestStr[1], buf[0], (Length(TestStr) + 1)*SizeOf(widechar));
s:=buf;
writeln(s);
buf[0]:=#0;
s:=buf;
end.