fpc/tests/webtbs/tw17236.pp
florian 792b629aa6 + -Xa option: generate code which allows to use more than 2 GB of static data on 64 Bit targets
+ implemented support for x86-64
  * more than 2 GB static data requires to use the --no-relax option on linux

git-svn-id: trunk@47651 -
2020-11-30 22:07:34 +00:00

12 lines
260 B
ObjectPascal

{ %target=linux,darwin,freebsd,netbsd,openbsd,sunos,beos,haiku }
{ %cpu=x86_64,powerpc64,mips64,sparc64,ia64,alpha }
{ %opt=-Xa }
{ windows does not support statics > 2GB }
var
i : longint;
a : array[0..1500000000] of longint;
begin
writeln(a[i]);
end.