fpc/tests/webtbs/tw20947.pp
svenbarth e0b41141d2 "SizeInt" inside the compiler references the "size of an int" on the Host platform. What we want for writing size information in PPUs for Generics is "ASizeInt" which is the "size of an int" of the target platform. This fixes Mantis .
* pscanner.pas: change SizeInt to ASizeInt for tokenreadsizeint and tokenwritesizeint and change necessary other locations for record- and replaytokenbuffers
+ Added a test in the hope that some test-platforms do cross platform (e.g. win32 => win64) compilation.

git-svn-id: trunk@21651 -
2012-06-19 08:47:30 +00:00

22 lines
498 B
ObjectPascal

{ the important part of this test is a cross compilation which a change in the
size of the bitness, e.g. from Win32 to Win64 where the unit "fgl" was
compiled with the 32-to-64-bit cross compiler and this program itself is
compiled with the native 64-bit compiler }
program tw20947;
uses
fgl;
type
TTestList = specialize TFPGList<Byte>;
Var
Test : TTestList;
begin
Test := TTestList.Create;
Test.Add(2);
WriteLn(Test[0]); // This should output 2 to console
Test.Free;
end.