1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
-- { dg-do run }
--
with Init12; use Init12;
with Text_IO; use Text_IO;
with Dump;
procedure T12 is
Local_A11 : Arr11;
Local_A22 : Arr22;
begin
Local_A11(1,1) := My_A11(1,1) + 1;
Local_A11(1,2) := My_A11(1,2) + 1;
Local_A11(2,1) := My_A11(2,1) + 1;
Local_A11(2,2) := My_A11(2,2) + 1;
Put ("Local_A11 :");
Dump (Local_A11'Address, Arr11'Max_Size_In_Storage_Elements);
New_Line;
-- { dg-output "Local_A11 : 13 00 ab 00 35 00 cd 00 13 00 ab 00 35 00 cd 00\n" }
Local_A22(1,1) := My_A22(1,1) + 1;
Local_A22(1,2) := My_A22(1,2) + 1;
Local_A22(2,1) := My_A22(2,1) + 1;
Local_A22(2,2) := My_A22(2,2) + 1;
Put ("Local_A22 :");
Dump (Local_A22'Address, Arr22'Max_Size_In_Storage_Elements);
New_Line;
-- { dg-output "Local_A22 : 00 ab 00 13 00 cd 00 35 00 ab 00 13 00 cd 00 35\n" }
Local_A11 := (1 => (16#AB0012#, 16#CD0034#),
2 => (16#AB0012#, 16#CD0034#));
Put ("Local_A11 :");
Dump (Local_A11'Address, Arr11'Max_Size_In_Storage_Elements);
New_Line;
-- { dg-output "Local_A11 : 12 00 ab 00 34 00 cd 00 12 00 ab 00 34 00 cd 00\\n" }
Local_A22 := (1 => (16#AB0012#, 16#CD0034#),
2 => (16#AB0012#, 16#CD0034#));
Put ("Local_A22 :");
Dump (Local_A22'Address, Arr22'Max_Size_In_Storage_Elements);
New_Line;
-- { dg-output "Local_A22 : 00 ab 00 12 00 cd 00 34 00 ab 00 12 00 cd 00 34\n" }
Local_A11(1,1) := Local_A11(1,1) + 1;
Local_A11(1,2) := Local_A11(1,2) + 1;
Local_A11(2,1) := Local_A11(2,1) + 1;
Local_A11(2,2) := Local_A11(2,2) + 1;
Put ("Local_A11 :");
Dump (Local_A11'Address, Arr11'Max_Size_In_Storage_Elements);
New_Line;
-- { dg-output "Local_A11 : 13 00 ab 00 35 00 cd 00 13 00 ab 00 35 00 cd 00\n" }
Local_A22(1,1) := Local_A22(1,1) + 1;
Local_A22(1,2) := Local_A22(1,2) + 1;
Local_A22(2,1) := Local_A22(2,1) + 1;
Local_A22(2,2) := Local_A22(2,2) + 1;
Put ("Local_A22 :");
Dump (Local_A22'Address, Arr22'Max_Size_In_Storage_Elements);
New_Line;
-- { dg-output "Local_A22 : 00 ab 00 13 00 cd 00 35 00 ab 00 13 00 cd 00 35\n" }
end;
|