Commit | Line | Data |
---|---|---|
88b9d363 | 1 | -- Copyright 2021-2022 Free Software Foundation, Inc. |
db2534b7 TT |
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 | procedure Foo is | |
17 | ||
18 | type R_Type is null record; | |
19 | type R_Access is access R_Type; | |
20 | ||
21 | type U_0 is mod 1; | |
22 | type U_P_T is access all U_0; | |
23 | ||
24 | function F (R : R_Access) return Boolean is | |
25 | begin | |
26 | return True; | |
27 | end F; | |
28 | ||
29 | function F (I : Integer) return Boolean is | |
30 | begin | |
31 | return False; | |
32 | end F; | |
33 | ||
34 | B1 : constant Boolean := F (null); | |
35 | B2 : constant Boolean := F (0); | |
36 | ||
37 | U : U_0 := 0; | |
38 | U_Ptr : U_P_T := null; | |
39 | ||
40 | begin | |
41 | null; -- START | |
42 | end Foo; |