aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/issue1264/issue.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/synth/issue1264/issue.vhdl')
-rw-r--r--testsuite/synth/issue1264/issue.vhdl19
1 files changed, 19 insertions, 0 deletions
diff --git a/testsuite/synth/issue1264/issue.vhdl b/testsuite/synth/issue1264/issue.vhdl
new file mode 100644
index 000000000..99075f4d7
--- /dev/null
+++ b/testsuite/synth/issue1264/issue.vhdl
@@ -0,0 +1,19 @@
+library ieee;
+use ieee.std_logic_1164.all;
+use ieee.numeric_std.all;
+
+entity issue is
+ port
+ (srl_usn : out unsigned (8-1 downto 0);
+ sll_usn : out unsigned (8-1 downto 0);
+ srl_sgn : out signed (8-1 downto 0);
+ sll_sgn : out signed (8-1 downto 0));
+end issue;
+
+architecture beh of issue is
+begin
+ srl_usn <= unsigned'(b"0000_0000") srl 1; -- work
+ sll_usn <= unsigned'(b"0000_0000") sll 1; -- fail
+ srl_sgn <= signed'(b"0000_0000") srl 1; -- fail
+ sll_sgn <= signed'(b"0000_0000") sll 1; -- fail
+end architecture beh;