aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue2344/ent1.vhdl
blob: 63099cbb987afec423c3c35687ab8cca6f35d567 (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
27
28
29
30
31
32
33
34
35
36
library ieee;
use ieee.std_logic_1164.all;

entity ent1 is
end entity;

architecture a of ent1 is
  signal s1 : std_ulogic_vector(2 downto 0);
  signal s2 : std_ulogic;

  procedure proc (
    signal a : in std_ulogic_vector(2 downto 0)
  ) is
    variable b : std_ulogic;
  begin
    if s2 = '0' then
      b := a(0);
    end if;
  end procedure;

begin
  process (all) is
  begin
    proc(a => s1);
  end process;
end architecture;

library ieee;

entity ent2 is
end entity;

architecture a of ent2 is
begin
  ent1: entity work.ent1;
end a;