diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-11-06 04:49:21 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-11-06 04:49:21 +0100 |
commit | 4c014bcc9e319eb6078d6f21857cd170c26483f1 (patch) | |
tree | 22532857a1e2c31cb6100f5146946e7d2478339f /testsuite/synth/issue1009/array_test.vhdl | |
parent | 5df1302fbed651ff0a9f7014f4ca8e23546237cd (diff) | |
download | ghdl-4c014bcc9e319eb6078d6f21857cd170c26483f1.tar.gz ghdl-4c014bcc9e319eb6078d6f21857cd170c26483f1.tar.bz2 ghdl-4c014bcc9e319eb6078d6f21857cd170c26483f1.zip |
testsuite/synth: add a similar testcase for #1009
Diffstat (limited to 'testsuite/synth/issue1009/array_test.vhdl')
-rw-r--r-- | testsuite/synth/issue1009/array_test.vhdl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/synth/issue1009/array_test.vhdl b/testsuite/synth/issue1009/array_test.vhdl new file mode 100644 index 000000000..571476555 --- /dev/null +++ b/testsuite/synth/issue1009/array_test.vhdl @@ -0,0 +1,13 @@ +entity array_test is + port ( + o : out integer + ); +end array_test; + +architecture rtl of array_test is + type t_array is array (natural range <>) of integer; + constant rec_constant : t_array := (1 => 27.777 us / 83.333 ns); + constant rec_constant2 : t_array := rec_constant; +begin + o <= rec_constant2 (1); +end rtl; |