[gdb/testsuite] Fix gdb.rust/completion.exp timeout on riscv64-linux
[binutils-gdb.git] / gdb / testsuite / gdb.ada / py_range / foo.adb
blobd0e7dd60a88634583943920751e477b98cbfdcea
1 -- Copyright 2013-2024 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.
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/>.
16 with Pck; use Pck;
18 procedure Foo is
19 type Small is range -128 .. 127;
20 SR : Small := 48;
22 type Small_Integer is range -2 ** 31 .. 2 ** 31 - 1;
23 SI : Small_Integer := 740804;
25 type Integer4_T is range -2 ** 31 .. 2 ** 31 - 1;
26 for Integer4_T'Size use 32;
27 IR : Integer4_T := 974;
28 begin
29 Do_Nothing (SR'Address); -- STOP
30 Do_Nothing (SI'Address);
31 Do_Nothing (IR'Address);
32 end Foo;