summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/specs/null_aggr_bug.ads
blob: 95467f428ebc9ffa88f26b8eccabe0ca665c373f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--  { dg-do compile }
package Null_Aggr_Bug is
   
   type Rec1 is null record;
   
   type Rec2 is tagged null record;
   
   type Rec3 is new Rec2 with null record;
   
   X1 : Rec1 := (null record);
   Y1 : Rec1 := (others => <>);
   
   X2 : Rec2 := (null record);
   Y2 : Rec2 := (others => <>);
   
   X3 : Rec3 := (null record);
   Y3 : Rec3 := (others => <>);
   Z3 : Rec3 := (Rec2 with others => <>);

end Null_Aggr_Bug;