summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/aggr16.adb
blob: 2f559da25f9bf4fd1dd0e0a60797581a17eb0291 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
-- { dg-do compile }

with Aggr16_Pkg; use Aggr16_Pkg;

package body Aggr16 is

  type Arr is array (1 .. 4) of Time;

  type Change_Type is (One, Two, Three);

  type Change (D : Change_Type) is record
    case D is
      when Three =>
        A : Arr;
      when Others =>
        B : Boolean;
    end case;
  end record;

  procedure Proc is
    C : Change (Three);
  begin
    C.A := (others => Null_Time);
  end;

end Aggr16;