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