Automatic Copyright Year update after running gdb/copyright.py
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.ada / arr_acc_idx_w_gap / enum_with_gap.ads
CommitLineData
88b9d363 1-- Copyright 2018-2022 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
16package 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
0bc2354b
TT
37 type Enum_Subrange is new Enum_With_Gaps range Lit1 .. Lit3;
38
7150d33c
JG
39 type MyWord is range 0 .. 16#FFFF# ;
40 for MyWord'Size use 16;
41
42 type AR is array (Enum_With_Gaps range <>) of MyWord;
43 type AR_Access is access AR;
0bc2354b 44
7150d33c 45 type String_Access is access String;
0bc2354b 46
7150d33c
JG
47 procedure Do_Nothing (E : AR_Access);
48 procedure Do_Nothing (E : String_Access);
49
50end Enum_With_Gap;
This page took 0.543274 seconds and 4 git commands to generate.