]>
Commit | Line | Data |
---|---|---|
42a4f53d | 1 | -- Copyright 2018-2019 Free Software Foundation, Inc. |
2a62dfa9 JB |
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 Aggregates is | |
17 | subtype Int is Integer range 0 .. 7; | |
18 | ||
19 | type Packed_Rec is record | |
2ab54467 PW |
20 | Packed_Array_Assign_W : Integer; |
21 | Packed_Array_Assign_X, Packed_Array_Assign_Y : Int; | |
2a62dfa9 JB |
22 | end record; |
23 | pragma Pack (Packed_Rec); | |
24 | ||
25 | type Packed_RecArr is array (Integer range <>) of Packed_Rec; | |
26 | pragma Pack (Packed_RecArr); | |
27 | ||
28 | procedure Run_Test; | |
29 | ||
30 | private | |
2ab54467 PW |
31 | PR : Packed_Rec := (Packed_Array_Assign_Y => 3, |
32 | Packed_Array_Assign_W => 104, | |
33 | Packed_Array_Assign_X => 2); | |
2a62dfa9 JB |
34 | PRA : Packed_RecArr (1 .. 3); |
35 | end Aggregates; |