diff options
author | Tristan Gingold <tgingold@free.fr> | 2021-09-12 16:21:47 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2021-09-12 16:21:47 +0200 |
commit | 9d6e7f40d3c3c02b86325aa60c2cc5e9da18c9d7 (patch) | |
tree | 0d4d29dab3d8ee02d5952c5e0f3252d518c40ced /testsuite/gna/issue786/ent.vhdl | |
parent | a15dff39e8131feaaecb04550bd1eeb2d1470b21 (diff) | |
download | ghdl-9d6e7f40d3c3c02b86325aa60c2cc5e9da18c9d7.tar.gz ghdl-9d6e7f40d3c3c02b86325aa60c2cc5e9da18c9d7.tar.bz2 ghdl-9d6e7f40d3c3c02b86325aa60c2cc5e9da18c9d7.zip |
testsuite/gna: add a test for #786
Diffstat (limited to 'testsuite/gna/issue786/ent.vhdl')
-rw-r--r-- | testsuite/gna/issue786/ent.vhdl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/gna/issue786/ent.vhdl b/testsuite/gna/issue786/ent.vhdl new file mode 100644 index 000000000..833f4241e --- /dev/null +++ b/testsuite/gna/issue786/ent.vhdl @@ -0,0 +1,15 @@ +entity ent is +end ent; + +architecture a of ent is + signal sig_x : bit_vector(2 downto 0); + signal sig_y : bit_vector(2 downto 0); + + signal sig_z : bit_vector(3 downto 0); +begin + -- works +-- (sig_x(1), sig_x(0), sig_y(1), sig_y(0)) <= sig_z; + + -- "raised CONSTRAINT_ERROR : trans-chap3.adb:3058 access check failed" + (sig_x(1 downto 0), sig_y(1 downto 0)) <= sig_z; +end a; |