diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-07-25 19:09:58 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-07-25 19:09:58 +0200 |
commit | 092e788d5e00c034593d700859c001a43809038e (patch) | |
tree | 5427e47d9a59e4025b4426a24d09508d6686c9bc /testsuite/synth/issue1406/repro.vhdl | |
parent | 9f2f749c32d6ca8500f3f96977a4ee3801dc13a2 (diff) | |
download | ghdl-092e788d5e00c034593d700859c001a43809038e.tar.gz ghdl-092e788d5e00c034593d700859c001a43809038e.tar.bz2 ghdl-092e788d5e00c034593d700859c001a43809038e.zip |
testsuite/synth: add tests for #1406
Diffstat (limited to 'testsuite/synth/issue1406/repro.vhdl')
-rw-r--r-- | testsuite/synth/issue1406/repro.vhdl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/synth/issue1406/repro.vhdl b/testsuite/synth/issue1406/repro.vhdl new file mode 100644 index 000000000..a56d9f934 --- /dev/null +++ b/testsuite/synth/issue1406/repro.vhdl @@ -0,0 +1,16 @@ +library ieee; +use ieee.std_logic_1164.all; + +entity repro is + port (a, b : natural range 0 to 3; + o : out std_ulogic); +end; + +architecture behav of repro is + type table_2d is array (0 to 3, 0 to 3) of std_ulogic; + + constant table : table_2d := ("0011", "1100", "0101", "1010"); +begin + o <= table(a,b); +end; + |