summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/aggr15.adb
blob: e69e9d346e10ad21ba817e53cd338370f1d0c75e (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;