aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue1387/repro3.vhdl
blob: 8e2dd1ebd551c6420c08f0218a0f582a6aea12ee (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
package support_pkg3 is
  function ">" ( l,r : integer ) return bit;
end;

package body support_pkg3 is
  function ">" ( l,r : integer ) return bit is
  begin
    if boolean'(l > r) then
      return '1';
    else
      return '0';
    end if;
  end ">";
end;

use work.support_pkg3.all;

entity repro3 is
end;

architecture behav of repro3 is
  signal sov : bit_vector(0 to 21);
begin
  assert (sov'length > 1);
end;