fpc/tests/webtbs/tw10825.pp
Jonas Maebe 88bdf1d674 * fixed test for non-mswindows platforms
git-svn-id: trunk@10338 -
2008-02-16 11:58:15 +00:00

22 lines
462 B
ObjectPascal

program stringconcat;
//compile with -gh
{$ifdef FPC}{$mode objfpc}{$h+}{$INTERFACES CORBA}{$endif}
{$ifdef mswindows}{$apptype console}{$endif}
uses
{$ifdef FPC}{$ifdef linux}cthreads,{$endif}{$endif}
sysutils;
var
wstr1: widestring;
begin
{$ifdef mswindows}
winwidestringalloc:= false;
{$endif}
//crash exist with winwidestringalloc also but with bigger application only
wstr1:= '123';
wstr1:= 'ABC'+wstr1+'abc';
writeln(wstr1);
flush(output);
end.