Debian Codegraph @

gcc/testsuite/gnat.dg/sso/init13.ads

raw
1 with Ada.Numerics; use Ada.Numerics;
2 with System;
3
4 package Init13 is
5
6 type Complex is record
7 R : Float;
8 I : Float;
9 end record;
10 pragma Complex_Representation (Complex);
11
12 type R1 is record
13 F : Complex;
14 end record;
15 for R1'Bit_Order use System.Low_Order_First;
16 for R1'Scalar_Storage_Order use System.Low_Order_First;
17 for R1 use record
18 F at 0 range 0 .. 63;
19 end record;
20
21 type R2 is record
22 F : Complex;
23 end record;
24 for R2'Bit_Order use System.High_Order_First;
25 for R2'Scalar_Storage_Order use System.High_Order_First;
26 for R2 use record
27 F at 0 range 0 .. 63;
28 end record;
29
30 My_R1 : constant R1 := (F => (Pi, -Pi));
31 My_R2 : constant R2 := (F => (Pi, -Pi));
32
33 end Init13;