mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-04 18:30:36 +02:00
* new bug
This commit is contained in:
parent
facb8d93c1
commit
176f2c1c1b
26
tests/webtbs/tw3113.pp
Normal file
26
tests/webtbs/tw3113.pp
Normal file
@ -0,0 +1,26 @@
|
||||
{ Source provided for Free Pascal Bug Report 3113 }
|
||||
{ Submitted by "Michalis Kamburelis" on 2004-05-23 }
|
||||
{ e-mail: michalis@camelot.homedns.org }
|
||||
type
|
||||
TVector3 = array[0..2]of Integer;
|
||||
|
||||
procedure P(const A:array of TVector3);
|
||||
var i:Integer;
|
||||
begin
|
||||
Writeln(High(A));
|
||||
|
||||
if High(A)<>1 then
|
||||
begin
|
||||
writeln('Error!');
|
||||
halt(1);
|
||||
end;
|
||||
|
||||
for i:=0 to High(A) do
|
||||
Writeln(' ', A[i][0], ' ', A[i][1], ' ', A[i][2]);
|
||||
end;
|
||||
|
||||
const A1:TVector3 = (1, 2, 3);
|
||||
begin
|
||||
P(A1);
|
||||
{ When changed to P([A1]), works OK. }
|
||||
end.
|
Loading…
Reference in New Issue
Block a user