aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/issue1170/bug.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/synth/issue1170/bug.vhdl')
-rw-r--r--testsuite/synth/issue1170/bug.vhdl20
1 files changed, 20 insertions, 0 deletions
diff --git a/testsuite/synth/issue1170/bug.vhdl b/testsuite/synth/issue1170/bug.vhdl
new file mode 100644
index 000000000..d68ad2beb
--- /dev/null
+++ b/testsuite/synth/issue1170/bug.vhdl
@@ -0,0 +1,20 @@
+library IEEE;
+use IEEE.std_logic_1164.all;
+use IEEE.numeric_std.all;
+
+entity bug is
+ port(
+ dummy : in std_ulogic
+ );
+end bug;
+
+architecture behav of bug is
+ constant LEN : positive := 2;
+begin
+ outer : block
+ begin
+ gen : for i in 0 to LEN-1 generate
+ --empty
+ end generate;
+ end block;
+end architecture;