PR ipa/83051
[official-gcc.git] / gcc / testsuite / gnat.dg / aggr16_pkg.ads
blob8bacbc9b04fbae6da8c4244f849e2cb0434d5eb1
1 package Aggr16_Pkg is
3 type Time_Type is (A, B);
5 type Time (D : Time_Type := A) is private;
7 Null_Time : constant Time;
9 private
11 type Hour is record
12 I1 : Integer;
13 I2 : Integer;
14 end record;
16 type Time (D : Time_Type := A) is record
17 case D is
18 when A =>
19 A_Time : Integer;
20 when B =>
21 B_Time : Hour;
22 end case;
23 end record;
25 Null_Time : constant Time := (A, 0);
27 end Aggr16_Pkg;