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 / error5.pcat < prev    next >
Text File  |  2006-03-05  |  239b  |  16 lines

  1. (* This program tests the "Count-not-positive" error. *)
  2.  
  3. program is
  4.  
  5.   type A is array of integer;
  6.   var p: A := nil;
  7.       i: integer := 0;
  8.  
  9. begin
  10.  
  11.   write ("Should cause an Count-not-positive message...");
  12.   p := A {{ i of 0 }};
  13.  
  14. end;
  15.  
  16.