aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/issue1460/rightmost02.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/synth/issue1460/rightmost02.vhdl')
-rw-r--r--testsuite/synth/issue1460/rightmost02.vhdl14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/synth/issue1460/rightmost02.vhdl b/testsuite/synth/issue1460/rightmost02.vhdl
new file mode 100644
index 000000000..a1d4724fe
--- /dev/null
+++ b/testsuite/synth/issue1460/rightmost02.vhdl
@@ -0,0 +1,14 @@
+library ieee;
+use ieee.std_logic_1164.all;
+use ieee.numeric_std.all;
+
+entity rightmost02 is
+ port (d : signed (2 to 4);
+ res : out integer);
+end rightmost02;
+
+architecture behav of rightmost02 is
+begin
+ res <= find_rightmost (d, '1');
+end behav;
+