home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.ee.pdx.edu
/
2014.02.ftp.ee.pdx.edu.tar
/
ftp.ee.pdx.edu
/
pub
/
users
/
Harry
/
compilers
/
p11
/
tst
/
array2.pcat
< prev
next >
Wrap
Text File
|
2006-03-05
|
297b
|
17 lines
(* This program tests array allocation. *)
program is
type A is array of integer;
var a: A := nil;
i : integer := 0;
begin
a := A {{ 100 of -7654 }};
write ("Should print -7654...", a[0]);
write ("Should print -7654...", a[50]);
write ("Should print -7654...", a[99]);
end;