home *** CD-ROM | disk | FTP | other *** search
/ The Unsorted BBS Collection / thegreatunsorted.tar / thegreatunsorted / programming / misc_programming / TEST / DBTEST.ADA < prev    next >
Encoding:
Text File  |  1990-06-28  |  611 b   |  27 lines

  1. with ada_io; use ada_io;
  2. procedure dbtest is
  3.   x: integer := 37;
  4.   s: string(1..3) := "abc";
  5.   type color is (red, yellow, blue);
  6.   a: array(color) of integer := (2, 3, 5);
  7.   b: array(yellow..blue) of float := (3.7, 7.3);
  8.   t: string(3..6);
  9.   empty: string(1..0);
  10.   type ivector is array(natural range <>) of integer;
  11.   iempty: ivector(1..0);
  12.   type rec is
  13.     record
  14.       x,y,z: integer;
  15.     end record;
  16.   r: array(1..3) of rec := ((11,12,13),(21,22,23),(31,32,33));
  17.   procedure p(n: string) is
  18.   begin
  19.     put_line(n);
  20.   end;
  21. begin
  22.   t := "wxyz";
  23.   p("hello");
  24.   p(t);
  25.   p("");
  26. end;
  27.