fpc/tests/webtbs/tw2765.pp
2005-02-14 17:13:06 +00:00

19 lines
359 B
ObjectPascal
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ Source provided for Free Pascal Bug Report 2765 }
{ Submitted by "Michael Van Canneyt" on 2003-11-04 }
{ e-mail: michael.vancanneytwisa.be }
program testw;
var
P : PWideChar;
PA : PChar;
S,T : AnsiString;
begin
S:='SomeThing';
P:=PWideChar(S);
PA:=PChar(Pointer(P));
Writeln('P : ',PA);
T:=WideCharToString(P);
Writeln('T : ',T);
end.