PR target/84336
[official-gcc.git] / gcc / testsuite / gnat.dg / sso / p13.adb
blobb84a42c8f10471b3a0d3473ad47d4d6a805c2afe
1 -- { dg-do run }
3 with Init13; use Init13;
4 with Ada.Numerics; use Ada.Numerics;
5 with Text_IO; use Text_IO;
6 with Dump;
8 procedure P13 is
10 Local_R1 : R1;
11 Local_R2 : R2;
13 begin
14 Put ("My_R1 :");
15 Dump (My_R1'Address, R1'Max_Size_In_Storage_Elements);
16 New_Line;
17 -- { dg-output "My_R1 : db 0f 49 40 db 0f 49 c0.*\n" }
19 Put ("My_R2 :");
20 Dump (My_R2'Address, R2'Max_Size_In_Storage_Elements);
21 New_Line;
22 -- { dg-output "My_R2 : 40 49 0f db c0 49 0f db.*\n" }
24 Local_R1 := My_R1;
25 Put ("Local_R1 :");
26 Dump (Local_R1'Address, R1'Max_Size_In_Storage_Elements);
27 New_Line;
28 -- { dg-output "Local_R1 : db 0f 49 40 db 0f 49 c0.*\n" }
30 Local_R2 := My_R2;
31 Put ("Local_R2 :");
32 Dump (Local_R2'Address, R2'Max_Size_In_Storage_Elements);
33 New_Line;
34 -- { dg-output "Local_R2 : 40 49 0f db c0 49 0f db.*\n" }
36 Local_R1.F := (Pi, -Pi);
38 Put ("Local_R1 :");
39 Dump (Local_R1'Address, R1'Max_Size_In_Storage_Elements);
40 New_Line;
41 -- { dg-output "Local_R1 : db 0f 49 40 db 0f 49 c0.*\n" }
43 Local_R2.F := (Pi, -Pi);
45 Put ("Local_R2 :");
46 Dump (Local_R2'Address, R2'Max_Size_In_Storage_Elements);
47 New_Line;
48 -- { dg-output "Local_R2 : 40 49 0f db c0 49 0f db.*\n" }
50 Local_R1.F := Local_R2.F;
52 Put ("Local_R1 :");
53 Dump (Local_R1'Address, R1'Max_Size_In_Storage_Elements);
54 New_Line;
55 -- { dg-output "Local_R1 : db 0f 49 40 db 0f 49 c0.*\n" }
57 Local_R2.F := Local_R1.F;
59 Put ("Local_R2 :");
60 Dump (Local_R2'Address, R2'Max_Size_In_Storage_Elements);
61 New_Line;
62 -- { dg-output "Local_R2 : 40 49 0f db c0 49 0f db.*\n" }
63 end;