xref: /netbsd-src/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.ada/py_range/foo.adb (revision bdc22b2e01993381dcefeff2bc9b56ca75a4235c)
1--  Copyright 2013-2016 Free Software Foundation, Inc.
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
16with Pck; use Pck;
17
18procedure Foo is
19   type Small is range -128 .. 127;
20   SR : Small := 48;
21
22   type Small_Integer is range -2 ** 31 .. 2 ** 31 - 1;
23   SI : Small_Integer := 740804;
24
25   type Integer4_T is range -2 ** 31 .. 2 ** 31 - 1;
26   for Integer4_T'Size use 32;
27   IR : Integer4_T := 974;
28begin
29   Do_Nothing (SR'Address);  -- STOP
30   Do_Nothing (SI'Address);
31   Do_Nothing (IR'Address);
32end Foo;
33