PR target/84336
[official-gcc.git] / gcc / testsuite / gnat.dg / sso / q4.adb
blob4c2102ff6a8ccb5795f85bd7f631168f50573a69
1 -- { dg-do run }
3 with Init4; use Init4;
4 with Ada.Numerics; use Ada.Numerics;
5 with Text_IO; use Text_IO;
6 with Dump;
8 procedure Q4 is
10 A1 : R1 := My_R1;
11 B1 : R1 := My_R1;
13 A2 : R2 := My_R2;
14 B2 : R2 := My_R2;
16 begin
17 Put ("A1 :");
18 Dump (A1'Address, R1'Max_Size_In_Storage_Elements);
19 New_Line;
20 -- { dg-output "A1 : db 0f 49 40.*\n" }
22 Put ("B1 :");
23 Dump (B1'Address, R1'Max_Size_In_Storage_Elements);
24 New_Line;
25 -- { dg-output "B1 : db 0f 49 40.*\n" }
27 Put ("A2 :");
28 Dump (A2'Address, R2'Max_Size_In_Storage_Elements);
29 New_Line;
30 -- { dg-output "A2 : 40 49 0f db.*\n" }
32 Put ("B2 :");
33 Dump (B2'Address, R2'Max_Size_In_Storage_Elements);
34 New_Line;
35 -- { dg-output "B2 : 40 49 0f db.*\n" }
37 if A1.F /= B1.F then
38 raise Program_Error;
39 end if;
41 if A1.F /= Pi then
42 raise Program_Error;
43 end if;
45 if A2.F /= B2.F then
46 raise Program_Error;
47 end if;
49 if A2.F /= Pi then
50 raise Program_Error;
51 end if;
53 end;