2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gnat.dg / discr1.ads
blobe2adab4412c5bb3acae65414343e1b836daab729
1 package discr1 is
3 type R is (One, Two);
5 type C_Type (Kind : R) is
6 record
7 case Kind is
8 when One =>
9 Name : Integer;
10 when Two =>
11 Designator : String (1 .. 40);
12 end case;
13 end record;
15 for C_Type use record
16 Name at 0 range 0.. 31;
17 Designator at 0 range 0..319;
18 Kind at 40 range 0.. 7;
19 end record;
21 for C_Type'Size use 44 * 8;
23 procedure Assign (Id : String);
25 end discr1;