diff options
Diffstat (limited to 'testsuite/gna/issue1768/repro3.vhdl')
-rw-r--r-- | testsuite/gna/issue1768/repro3.vhdl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/gna/issue1768/repro3.vhdl b/testsuite/gna/issue1768/repro3.vhdl new file mode 100644 index 000000000..7c64f4c67 --- /dev/null +++ b/testsuite/gna/issue1768/repro3.vhdl @@ -0,0 +1,12 @@ +package repro3 is + constant bv : bit_vector := "1010011"; + function f (vec : bit_vector := bv (0 to 3)) return bit; +end repro3; + +package body repro3 is + function f (vec : bit_vector := bv (0 to 3)) return bit is + begin + return '1'; + end f; +end repro3; + |