diff options
Diffstat (limited to 'testsuite/synth/issue1961/repro.vhdl')
-rw-r--r-- | testsuite/synth/issue1961/repro.vhdl | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/testsuite/synth/issue1961/repro.vhdl b/testsuite/synth/issue1961/repro.vhdl new file mode 100644 index 000000000..4c2f7c290 --- /dev/null +++ b/testsuite/synth/issue1961/repro.vhdl @@ -0,0 +1,30 @@ +entity repro is + port ( + clk : in bit + ); +end; + +architecture struct of repro is + + type a_t is record + value : bit_vector; + end record; + + type a_array_t is array(natural range<>) of a_t; + + type b_t is record + a : a_array_t; + end record; + + type b_array_t is array(natural range<>) of b_t; + + function fun return natural is + variable b : b_array_t(0 to 1)(a(0 to 31)(value(31 downto 0))); + begin + return 0; + end function; + + constant dummy : natural := fun; +begin + +end architecture; |