summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/webtbs/tw3327.pp
blob: 7cc75bdd4602829c3c5374f5b71479fd2c3e4337 (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
25
26
27
28
29
30
31
32
33
{ Source provided for Free Pascal Bug Report 3327 }
{ Submitted by "Andreas Dorn" on  2004-09-21 }
{ e-mail: andreasd1@gmx.de }

Program BugReport;

Type Type1 = Record
               a: Word;
               b: LongWord;
     End;

Type Type2 = Record
               a: Word;
               b: LongWord;
               c: Array[0..1024] Of Char;
     End;

Type Type3 = Record
               a: Word;
               b: LongWord;
               c: Array[0..1024] Of LongWord;
     End;

Var One: Array [1..100000] Of Type1;
    Two: Type2;
    Three: Type3 absolute two;
    Four: Type1 absolute Three;
Begin;
  One[1].a:=12;
  Four := One[1];
  if Four.a<>12 then
    halt(1);
End.