diff options
Diffstat (limited to 'testsuite/gna/issue1138/repro.vhdl')
| -rw-r--r-- | testsuite/gna/issue1138/repro.vhdl | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/testsuite/gna/issue1138/repro.vhdl b/testsuite/gna/issue1138/repro.vhdl new file mode 100644 index 000000000..31d273f75 --- /dev/null +++ b/testsuite/gna/issue1138/repro.vhdl @@ -0,0 +1,17 @@ +entity repro is +end; + +architecture behav of repro is + type my_rec is record + bv : bit_vector; + end record; + + function get_bv (n : natural) return my_rec is + begin + return (bv => (1 to n => '0')); + end get_bv; + + constant l : natural := get_bv (5).bv'length; +begin + assert l = 5; +end; |
