aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue2166/taggr2.vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2022-08-10 16:55:22 +0200
committerTristan Gingold <tgingold@free.fr>2022-08-10 16:55:22 +0200
commit4d14b77ce02b89b1a22718ce607b16d823d95c74 (patch)
tree6090f74b784e4768a6c1d7f8da9890f6da129f93 /testsuite/gna/issue2166/taggr2.vhdl
parent8a3922778cd92df96aaf5771f24d650bb8290559 (diff)
downloadghdl-4d14b77ce02b89b1a22718ce607b16d823d95c74.tar.gz
ghdl-4d14b77ce02b89b1a22718ce607b16d823d95c74.tar.bz2
ghdl-4d14b77ce02b89b1a22718ce607b16d823d95c74.zip
testsuite/gna: add a reproducer for #2166
Diffstat (limited to 'testsuite/gna/issue2166/taggr2.vhdl')
-rw-r--r--testsuite/gna/issue2166/taggr2.vhdl19
1 files changed, 19 insertions, 0 deletions
diff --git a/testsuite/gna/issue2166/taggr2.vhdl b/testsuite/gna/issue2166/taggr2.vhdl
new file mode 100644
index 000000000..721f57628
--- /dev/null
+++ b/testsuite/gna/issue2166/taggr2.vhdl
@@ -0,0 +1,19 @@
+entity taggr2 is
+end;
+
+architecture behav of taggr2 is
+ procedure set (v : inout string; l, r : positive) is
+ begin
+ v (l to r) := (others => ' ');
+ end set;
+begin
+ process
+ variable s : string (1 to 8);
+ begin
+ s(1) := 'A';
+ s(8) := 'Z';
+ set (s, 2, 7);
+ report s;
+ wait;
+ end process;
+end;