1 -- Copyright 2023-2024 Free Software Foundation, Inc.
3 -- This program is free software; you can redistribute it and/or modify
4 -- it under the terms of the GNU General Public License as published by
5 -- the Free Software Foundation; either version 3 of the License, or
6 -- (at your option) any later version.
8 -- This program is distributed in the hope that it will be useful,
9 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
10 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 -- GNU General Public License for more details.
13 -- You should have received a copy of the GNU General Public License
14 -- along with this program. If not, see <http://www.gnu.org/licenses/>.
17 subtype Small_Int is Integer range 0 .. 7;
18 type My_Int is range -2147483648 .. 2147483647;
21 type Index is range 1 .. 16;
24 type Index is range 1 .. 32;
27 type Index is range 1 .. 64;
30 type Index is range 1 .. 128;
33 type Index is range 1 .. 256;
36 type Index is range 1 .. 512;
39 type Index is range 1 .. 1024;
42 type Index is range 1 .. 2048;
45 type Index is range 1 .. 4096;
48 type Index is range 1 .. 8192;
51 type Index is range 1 .. 16384;
54 type Index is range 1 .. 32768;
57 type Index is range 1 .. 65536;
60 type Index is range 1 .. 131072;
63 type Index is range 1 .. 262144;
66 type Index is range 1 .. 524288;
68 #if CRASHGDB = 1048576
69 type Index is range 1 .. 1048576;
71 #if CRASHGDB = 2097152
72 type Index is range 1 .. 2097152;
76 array (Index) of My_Int;
77 Arr : My_Int_Array := (others => 0);
79 type My_Packed_Array is array (Index) of Small_Int;
80 pragma Pack (My_Packed_Array);
82 Packed_Arr : My_Packed_Array := (others => 0);