aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue2346/aggr2.vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2023-02-08 16:08:26 +0100
committerTristan Gingold <tgingold@free.fr>2023-02-08 16:08:26 +0100
commit41b8812dad8f9c78fb7dd652843b7a8855b0fb92 (patch)
tree39281d8dc5b6525edf3f537ffaa403a175f2df35 /testsuite/gna/issue2346/aggr2.vhdl
parentd0129fb0e2e89128de8d8569a32cd8fb97fa0b8c (diff)
downloadghdl-41b8812dad8f9c78fb7dd652843b7a8855b0fb92.tar.gz
ghdl-41b8812dad8f9c78fb7dd652843b7a8855b0fb92.tar.bz2
ghdl-41b8812dad8f9c78fb7dd652843b7a8855b0fb92.zip
testsuite/gna: add a test for #2346
Diffstat (limited to 'testsuite/gna/issue2346/aggr2.vhdl')
-rw-r--r--testsuite/gna/issue2346/aggr2.vhdl17
1 files changed, 17 insertions, 0 deletions
diff --git a/testsuite/gna/issue2346/aggr2.vhdl b/testsuite/gna/issue2346/aggr2.vhdl
new file mode 100644
index 000000000..a8788cb08
--- /dev/null
+++ b/testsuite/gna/issue2346/aggr2.vhdl
@@ -0,0 +1,17 @@
+entity aggr2 is
+end;
+
+architecture test of aggr2 is
+ constant tpd : time := 1 ns ;
+ signal A1, A0 : bit ;
+ function f return bit_vector is
+ begin
+ return "01";
+ end f;
+ procedure asgn (signal o : out bit_vector) is
+ begin
+ o <= f after tpd;
+ end asgn;
+begin
+ asgn (o (1) => A1, o(0) => A0);
+end;