Automatic Copyright Year update after running gdb/copyright.py
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.ada / mi_var_access / mi_access.adb
CommitLineData
88b9d363 1-- Copyright 2020-2022 Free Software Foundation, Inc.
3ae7ab99
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
16with Pck; use Pck;
17
18procedure Mi_Access is
19 A_String : String (3 .. 5) := "345"; -- STOP
20 A_String_Access : String_Access;
21 A_Pointer : Pointer;
22begin
23 Do_Nothing (A_String'Address);
24 A_String (4) := '6';
25 A_String_Access := Copy (A_String);
26 A_Pointer.P := A_String_Access;
02c6f3f1 27 Do_Nothing (A_String_Access'Address); -- STOP2
3ae7ab99
TT
28 A_String_Access (4) := 'a';
29 Do_Nothing (A_Pointer'Address);
30 A_String_Access := Copy("Hi");
31 A_Pointer.P := A_String_Access;
32 Do_Nothing (A_String_Access'Address);
33 A_String_Access := null;
34 A_Pointer.P := null;
02c6f3f1 35 Do_Nothing (A_Pointer'Address); -- STOP3
3ae7ab99
TT
36 Do_Nothing (A_String'Address);
37end Mi_Access;
This page took 0.1567 seconds and 4 git commands to generate.