]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/testsuite/gdb.ada/same_component_name/pck.adb
(Ada) Cleanup code by using ada_is_access_to_unconstrained_array call.
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.ada / same_component_name / pck.adb
CommitLineData
e2882c85 1-- Copyright 2010-2018 Free Software Foundation, Inc.
828d5846
XR
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 System;
17
18package body Pck is
19 package body Top is
20 procedure Assign (Obj: in out Top_T; TV : Integer) is
21 begin
22 Do_Nothing (Obj'Address); -- BREAK_TOP
23 end Assign;
24 end Top;
25
26 package body Middle is
27 procedure Assign (Obj: in out Middle_T; MV : Character) is
28 begin
29 Do_Nothing (Obj'Address); -- BREAK_MIDDLE
30 end Assign;
31 end Middle;
32
33 procedure Assign (Obj: in out Bottom_T; BV : Float) is
34 begin
35 Do_Nothing (Obj'Address); -- BREAK_BOTTOM
36 end Assign;
37
38 procedure Do_Nothing (A : System.Address) is
39 begin
40 null;
41 end Do_Nothing;
42end Pck;