* Patch from Laco to fix bug ID 24096

git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@24128 3ad0048d-3df7-0310-abae-a5850022a9f2
* Patch from Laco to enhance test for bug 24096

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