summaryrefslogtreecommitdiff
path: root/tests/webtbs/tw3864.pp
blob: 2d987daefa0af1f643de1d5ffb1b617029efaf90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ Explictly disable range check as the test
  is not about this but does generate a range check error
  for the index of rasteriso array }
{$R-}

{ Source provided for Free Pascal Bug Report 3864 }
{ Submitted by "Jernej" on  2005-04-01 }
{ e-mail: jernejcoder@gmail.com }
const
 rasteriso: array[0..2] of byte = // this is WAY too big
 (
   $00, $00, $00
 );

procedure glBitMap(const pb:pbyte);cdecl;
begin
end;

var
  i : longint;
begin
   i:=0;
   glBitmap(@rasteriso[(255 - i) * 16]); // Add a character to the current Display list
end.