Fix broken MinGW build of gcc.c
[official-gcc.git] / gcc / testsuite / gnat.dg / opt18.ads
blob85c3b634527db630cbb4cdf44a8684e13d6e53fb
1 package Opt18 is
3 type Cart_Axis_Type is (X, Y, Z);
5 type Cart_Vector_Type is array (Cart_Axis_Type) of Float;
7 function Mag (Item : in Cart_Vector_Type) return Float;
9 type Unit_Vector_Type is array (Cart_Axis_Type) of Float;
11 type Mag_Axis_Type is
12 record
13 Mag : Float;
14 Axis : Unit_Vector_Type;
15 end record;
17 type Unit_Quaternion_Type is record
18 X : Float;
19 Y : Float;
20 Z : Float;
21 S : Float;
22 end record;
24 function Unit_Quaternion_To_Mag_Axis (Quaternion : in Unit_Quaternion_Type)
25 return Mag_Axis_Type;
27 X_Unit : constant Unit_Vector_Type := (1.0, 0.0, 0.0);
29 end Opt18;