Fix typos
[official-gcc.git] / gcc / testsuite / gnat.dg / specs / discr4.ads
bloba7fc25b9d661618c506002dd0678d829f112a6e0
1 -- { dg-do compile }
2 -- { dg-options "-O" }
4 with Discr4_Pkg; use Discr4_Pkg;
6 package Discr4 is
8 type Data is record
9 Val : Rec;
10 Set : Boolean;
11 end record;
13 type Pair is record
14 Lower, Upper : Data;
15 end record;
17 function Build (L, U : Rec) return Pair is ((L, True), (U, False));
19 C1 : constant Pair := Build (Rec_One, Rec_Three);
21 C2 : constant Pair := Build (Get (0), Rec_Three);
23 end Discr4;