Added a test for a bug that was fixed in Delphi in (maybe XE4) to make sure that a similar bug will not be introduced in FPC.

Source: http://www.deltics.co.nz/blog/?p=1397


git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@24403 3ad0048d-3df7-0310-abae-a5850022a9f2