]>
Commit | Line | Data |
---|---|---|
b811d2c2 | 1 | -- Copyright 2018-2020 Free Software Foundation, Inc. |
7150d33c JG |
2 | -- |
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. | |
7 | -- | |
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. | |
12 | -- | |
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/>. | |
15 | ||
16 | package Enum_With_Gap is | |
17 | ||
18 | type Enum_With_Gaps is | |
19 | ( | |
20 | LIT0, | |
21 | LIT1, | |
22 | LIT2, | |
23 | LIT3, | |
24 | LIT4 | |
25 | ); | |
26 | ||
27 | for Enum_With_Gaps use | |
28 | ( | |
29 | LIT0 => 3, | |
30 | LIT1 => 5, | |
31 | LIT2 => 8, | |
32 | LIT3 => 13, | |
33 | LIT4 => 21 | |
34 | ); | |
35 | for Enum_With_Gaps'size use 16; | |
36 | ||
37 | type MyWord is range 0 .. 16#FFFF# ; | |
38 | for MyWord'Size use 16; | |
39 | ||
40 | type AR is array (Enum_With_Gaps range <>) of MyWord; | |
41 | type AR_Access is access AR; | |
42 | ||
43 | type String_Access is access String; | |
44 | ||
45 | procedure Do_Nothing (E : AR_Access); | |
46 | procedure Do_Nothing (E : String_Access); | |
47 | ||
48 | end Enum_With_Gap; |