diff options
Diffstat (limited to 'testsuite/gna/issue641/repro3.vhdl')
-rw-r--r-- | testsuite/gna/issue641/repro3.vhdl | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/testsuite/gna/issue641/repro3.vhdl b/testsuite/gna/issue641/repro3.vhdl new file mode 100644 index 000000000..ff015f83a --- /dev/null +++ b/testsuite/gna/issue641/repro3.vhdl @@ -0,0 +1,28 @@ +entity repro3b is + port (b : bit_vector); +end entity; + +architecture a of repro3b is + signal c : b'subtype; +begin + process + variable d : c'subtype; + begin + d := b; + d := (others => '0'); + assert d'left = 7; + assert d'right = 0; + wait; + end process; +end architecture; + +entity repro3 is +end entity; + +architecture tb of repro3 is + signal s : bit_vector(7 downto 0); +begin + DUT: entity work.repro3b + port map (b => s); +end architecture; + |