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
/
error4b.pcat
< prev
next >
Wrap
Text File
|
2006-03-05
|
257b
|
16 lines
(* This program tests the index-out-of-bounds error. *)
program is
type A is array of integer;
var a: A := nil;
i: integer := 0;
begin
a := A {{ 111, 222, 333 }};
write ("Should cause an index-out-of-bounds error...");
i := a [3];
end;