]>
Commit | Line | Data |
---|---|---|
b811d2c2 | 1 | -- Copyright 2016-2020 Free Software Foundation, Inc. |
342f8240 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 | with Pck; use Pck; | |
17 | ||
18 | package body Pkg is | |
19 | procedure Flip (Bits : in out Bits_Type; I : Natural) is | |
20 | begin | |
21 | -- Create a new scope to check that the scope match algorithm is fine in | |
22 | -- the front-end. | |
23 | declare | |
afcfda09 | 24 | Rename_Subscript_Param_B : Boolean renames Bits (I); |
342f8240 | 25 | begin |
afcfda09 | 26 | Rename_Subscript_Param_B := not Rename_Subscript_Param_B; -- BREAK |
342f8240 JB |
27 | Do_Nothing (Bits'Address); |
28 | end; | |
29 | end Flip; | |
30 | end Pkg; |