Skip to content

Commit

Permalink
testsuite/gna: add a test for ghdl#2458
Browse files Browse the repository at this point in the history
  • Loading branch information
tgingold committed Jan 13, 2024
1 parent 4f4e077 commit 0e64856
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
25 changes: 25 additions & 0 deletions testsuite/gna/issue2458/test3.vhdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
library ieee;
use ieee.std_logic_1164.all;

entity e3 is
generic (type data_type);
end entity;

architecture e of e3 is
signal s : data_type;
begin
end architecture;

library ieee;
use ieee.std_logic_1164.all;

entity test3 is
end entity;

architecture test of test3 is
component e3 is
generic (type data_type);
end component;
begin
inst : e3 generic map(data_type => std_logic);
end architecture;
3 changes: 3 additions & 0 deletions testsuite/gna/issue2458/testsuite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ if ghdl_is_preelaboration; then
analyze test2.vhdl
elab_simulate test2

analyze test3.vhdl
elab_simulate test3

clean
fi

Expand Down

0 comments on commit 0e64856

Please sign in to comment.