diff options
Diffstat (limited to 'testsuite/gna/issue374/bug.vhdl')
-rw-r--r-- | testsuite/gna/issue374/bug.vhdl | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/testsuite/gna/issue374/bug.vhdl b/testsuite/gna/issue374/bug.vhdl new file mode 100644 index 000000000..cc824294f --- /dev/null +++ b/testsuite/gna/issue374/bug.vhdl @@ -0,0 +1,19 @@ +library IEEE; +use IEEE.STD_LOGIC_1164.ALL; +use IEEE.NUMERIC_STD.ALL; + +entity ghdl_bug is +end ghdl_bug; +architecture ghdl_bug_arch of ghdl_bug is + +function fail_msg_data( + data : std_logic_vector +) return string is + variable data_nat : natural + := to_integer(unsigned(data(min(28, 24) downto 0))); +begin + return "data=" & integer'image(data_nat); +end function; + +begin +end ghdl_bug_arch; |