fpc/tests/webtbs/tw9897.pp
Jonas Maebe 33c4197f43 * changed FPC_EMPTYCHAR into a widechar because it's also used for
widestring -> pwidechar conversions (mantis #9897)

git-svn-id: trunk@8756 -
2007-10-09 17:52:25 +00:00

16 lines
230 B
ObjectPascal

program widecharbug;
var
AText : WideString;
AWideChar: PWideChar;
begin
AText := '';
AWideChar := PWideChar(AText);
if PWord(AWideChar)^<>0 then
begin
writeln(PWord(AWideChar)^);
halt(1);
end;
end.