diff options
Diffstat (limited to 'testsuite/gna/issue2422/aggr_repro2.vhdl')
-rw-r--r-- | testsuite/gna/issue2422/aggr_repro2.vhdl | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/testsuite/gna/issue2422/aggr_repro2.vhdl b/testsuite/gna/issue2422/aggr_repro2.vhdl new file mode 100644 index 000000000..910b7fa9c --- /dev/null +++ b/testsuite/gna/issue2422/aggr_repro2.vhdl @@ -0,0 +1,36 @@ +library ieee; +use ieee.std_logic_1164.all; +use ieee.numeric_std.all; + +entity comp_repro2 is + port ( + output : out unsigned + ); +end entity; + +architecture a1 of comp_repro2 is +begin + output <= (others => '0'); -- not using others due to issue #2421 +end architecture; + + +entity aggr_repro2 is +end; + +library ieee; +use ieee.std_logic_1164.all; +use ieee.numeric_std.all; + +architecture behav of aggr_repro2 is + signal s : unsigned(7 downto 0); +begin + inst: entity work.comp_repro2 + port map (output => s); + + process + begin + wait for 1 ns; + assert s = (s'range => '0') severity failure; + wait; + end process; +end behav; |