aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue1664/repro.vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2021-02-27 10:27:45 +0100
committerTristan Gingold <tgingold@free.fr>2021-02-27 13:11:48 +0100
commit3be25ce97f1d8ee97378bbcd6e1fb2faf3921357 (patch)
tree3db67a832db00ce79df994d2dc486f042ea7ddb6 /testsuite/gna/issue1664/repro.vhdl
parent8c6736780bea5459f7a605f50b69a9db22cde821 (diff)
downloadghdl-3be25ce97f1d8ee97378bbcd6e1fb2faf3921357.tar.gz
ghdl-3be25ce97f1d8ee97378bbcd6e1fb2faf3921357.tar.bz2
ghdl-3be25ce97f1d8ee97378bbcd6e1fb2faf3921357.zip
testsuite/gna: add a test for #1664
Diffstat (limited to 'testsuite/gna/issue1664/repro.vhdl')
-rw-r--r--testsuite/gna/issue1664/repro.vhdl12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/gna/issue1664/repro.vhdl b/testsuite/gna/issue1664/repro.vhdl
new file mode 100644
index 000000000..4ee9d3a49
--- /dev/null
+++ b/testsuite/gna/issue1664/repro.vhdl
@@ -0,0 +1,12 @@
+entity repro is
+end;
+
+architecture behavioral of repro is
+ signal s_index : natural;
+ signal s_wrcnt : integer range 0 to 3;
+begin
+ state_machine : process
+ begin
+ assert (s_wrcnt = 3 and s_index => 5);
+ end process state_machine;
+end behavioral; -- behavioral