diff options
Diffstat (limited to 'testsuite/gna/issue2346/aggr3.vhdl')
-rw-r--r-- | testsuite/gna/issue2346/aggr3.vhdl | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/testsuite/gna/issue2346/aggr3.vhdl b/testsuite/gna/issue2346/aggr3.vhdl new file mode 100644 index 000000000..3758b1310 --- /dev/null +++ b/testsuite/gna/issue2346/aggr3.vhdl @@ -0,0 +1,26 @@ +entity aggr3 is +end; + +architecture test of aggr3 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 + wait for 1 ns; + o <= f after tpd; + end asgn; +begin + process + begin + asgn (o (1) => A1, o(0) => A0); + wait for 1 ns; + assert a1 = '1'; + assert a0 = '0'; + report "done"; + wait; + end process; +end; |