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
/
array1.pcat
< prev
next >
Wrap
Text File
|
2006-03-05
|
272b
|
16 lines
(* This program tests basic array allocation. *)
program is
type A is array of integer;
var a: A := nil;
begin
a := A {{ 111, 222, 333 }};
write ("Should print 111...", a[0]);
write ("Should print 222...", a[1]);
write ("Should print 333...", a[2]);
end;