| 1 |
-- { dg-do run } |
| 2 |
|
| 3 |
with Init3; use Init3; |
| 4 |
with Text_IO; use Text_IO; |
| 5 |
with Dump; |
| 6 |
|
| 7 |
procedure Q3 is |
| 8 |
|
| 9 |
A1 : R1 := My_R1; |
| 10 |
B1 : R1 := My_R1; |
| 11 |
|
| 12 |
A2 : R2 := My_R2; |
| 13 |
B2 : R2 := My_R2; |
| 14 |
|
| 15 |
begin |
| 16 |
Put ("A1 :"); |
| 17 |
Dump (A1'Address, R1'Max_Size_In_Storage_Elements); |
| 18 |
New_Line; |
| 19 |
-- { dg-output "A1 : e2 59 d1 48 b4 aa d9 bb.*\n" } |
| 20 |
|
| 21 |
Put ("B1 :"); |
| 22 |
Dump (B1'Address, R1'Max_Size_In_Storage_Elements); |
| 23 |
New_Line; |
| 24 |
-- { dg-output "B1 : e2 59 d1 48 b4 aa d9 bb.*\n" } |
| 25 |
|
| 26 |
Put ("A2 :"); |
| 27 |
Dump (A2'Address, R2'Max_Size_In_Storage_Elements); |
| 28 |
New_Line; |
| 29 |
-- { dg-output "A2 : 84 8d 15 9e 15 5b 35 df.*\n" } |
| 30 |
|
| 31 |
Put ("B2 :"); |
| 32 |
Dump (B2'Address, R2'Max_Size_In_Storage_Elements); |
| 33 |
New_Line; |
| 34 |
-- { dg-output "B2 : 84 8d 15 9e 15 5b 35 df.*\n" } |
| 35 |
|
| 36 |
if A1.S1 /= B1.S1 then |
| 37 |
raise Program_Error; |
| 38 |
end if; |
| 39 |
|
| 40 |
if A1.S1 /= 2 then |
| 41 |
raise Program_Error; |
| 42 |
end if; |
| 43 |
|
| 44 |
if A2.S1 /= B2.S1 then |
| 45 |
raise Program_Error; |
| 46 |
end if; |
| 47 |
|
| 48 |
if A2.S1 /= 2 then |
| 49 |
raise Program_Error; |
| 50 |
end if; |
| 51 |
|
| 52 |
if A1.I /= B1.I or A1.N.C1 /= B1.N.C1 then |
| 53 |
raise Program_Error; |
| 54 |
end if; |
| 55 |
|
| 56 |
if A2.I /= B2.I or A2.N.C1 /= B2.N.C1 then |
| 57 |
raise Program_Error; |
| 58 |
end if; |
| 59 |
|
| 60 |
end; |