aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gnat.dg/specs/aggr3.ads
blob: 09b4466e0e56df697497071f41dc5ca6caf6772f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
-- { dg-do compile }

with Aggr3_Pkg; use Aggr3_Pkg;

package Aggr3 is

   type Enum is (One);

   type R (D : Enum := One) is
   record
      case D is
        when One => The_T : T; 
      end case;
   end record;

   My_R : R := (D => One, The_T => My_T);

end Aggr3;