diff options
Diffstat (limited to 'testsuite/synth/issue1002/test.vhdl')
-rw-r--r-- | testsuite/synth/issue1002/test.vhdl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/synth/issue1002/test.vhdl b/testsuite/synth/issue1002/test.vhdl new file mode 100644 index 000000000..0e8750807 --- /dev/null +++ b/testsuite/synth/issue1002/test.vhdl @@ -0,0 +1,15 @@ +library ieee; +use ieee.std_logic_1164.all; +use ieee.math_real.all; + +entity test is + generic ( + BITS : positive := 2 + ); +end entity test; + +architecture rtl of test is + constant count : positive := 2 ** BITS - 1; + subtype node_t is integer range 0 to count; +begin +end; |