gcc/testsuite/gnat.dg/lto28_pkg3.ads
raw| 1 | package Lto28_Pkg3 is |
| 2 | |
| 3 | type Discr_Type is (P, Q); |
| 4 | |
| 5 | type Rec (Discr : Discr_Type) is record |
| 6 | case Discr is |
| 7 | when Q => |
| 8 | A : Duration := 0.0; |
| 9 | B : Duration := 0.0; |
| 10 | when P => |
| 11 | null; |
| 12 | end case; |
| 13 | end record; |
| 14 | |
| 15 | subtype Q_Rec is Rec (Q); |
| 16 | |
| 17 | Default_Q_Rec : constant Q_Rec := (Discr => Q, others => <>); |
| 18 | |
| 19 | end Lto28_Pkg3; |