aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gnat.dg/aggr15.adb
blob: a4eeb231ac21fe97ce95f5d4f253cb3b30f62594 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
-- { dg-do compile }
-- { dg-options "-gnatws" }

package body Aggr15 is

  function CREATE return DATA_T is
    D : DATA_T;
  begin
    return D;
  end;

  function ALL_CREATE return ALL_DATA_T is
    C : constant ALL_DATA_T := (others => (others => Create));
  begin
    return C;
  end;

end Aggr15;