mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 04:29:29 +02:00
* fixed compilation of ppc system unit
This commit is contained in:
parent
dfff760c9a
commit
9825fadb99
27
tests/tbs/tb0457.pp
Normal file
27
tests/tbs/tb0457.pp
Normal file
@ -0,0 +1,27 @@
|
||||
{ %version=1.1}
|
||||
{$mode objfpc}
|
||||
program testa;
|
||||
|
||||
Type
|
||||
TA = array of Integer;
|
||||
|
||||
var
|
||||
A,B : TA;
|
||||
I,J : Integer;
|
||||
begin
|
||||
Setlength(A,10);
|
||||
For I:=0 to 9 do
|
||||
A[I]:=I;
|
||||
B:=Copy(A,3,6);
|
||||
if High(B)<>5 then
|
||||
begin
|
||||
writeln('Error 1');
|
||||
halt(1);
|
||||
end;
|
||||
For I:=0 to High(B) do
|
||||
if b[i]<>i+3 then
|
||||
begin
|
||||
writeln('Error 2');
|
||||
halt(1);
|
||||
end;
|
||||
end.
|
Loading…
Reference in New Issue
Block a user