aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/bug21500/resolv1.vhdl
blob: 2dcc6f73b97c1d8bd8bb5ce4a6fa4ac2ac87c92a (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
entity top is
  generic (width : natural := 8);
end top;

architecture behav of top is
  type arr1 is array (1 to width) of natural;
  type rec1 is record
    i : integer;
    a : arr1;
    c : character;
  end record;
  type arr2 is array (1 to width) of rec1;
  type arr3 is array (natural range <>) of arr2;

  function resolv (vec : arr3) return arr2
  is
  begin
    return vec (vec'left);
  end resolv;

  signal s : resolv arr2;
begin
end;