aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/issue1460/tb_leftmost03.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/synth/issue1460/tb_leftmost03.vhdl')
-rw-r--r--testsuite/synth/issue1460/tb_leftmost03.vhdl25
1 files changed, 25 insertions, 0 deletions
diff --git a/testsuite/synth/issue1460/tb_leftmost03.vhdl b/testsuite/synth/issue1460/tb_leftmost03.vhdl
new file mode 100644
index 000000000..132528ff9
--- /dev/null
+++ b/testsuite/synth/issue1460/tb_leftmost03.vhdl
@@ -0,0 +1,25 @@
+entity tb_leftmost03 is
+end tb_leftmost03;
+
+library ieee;
+use ieee.std_logic_1164.all;
+use ieee.numeric_std.all;
+
+architecture behav of tb_leftmost03 is
+ signal c : unsigned (0 to 8);
+ signal rc : integer;
+begin
+ dut_c: entity work.leftmost03
+ port map (c, rc);
+
+ process
+ begin
+ c <= b"0_0000_0000";
+
+ wait for 1 ns;
+
+ assert rc = -1 severity failure;
+
+ wait;
+ end process;
+end behav;