From 18149662b330de3d6085bddf168f4f513fd4f8fa Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Thu, 16 Mar 2017 06:59:05 +0100 Subject: Add testcase for #320 --- testsuite/gna/issue320/fuu.vhdl | 15 +++++++++++++++ testsuite/gna/issue320/testsuite.sh | 10 ++++++++++ 2 files changed, 25 insertions(+) create mode 100644 testsuite/gna/issue320/fuu.vhdl create mode 100755 testsuite/gna/issue320/testsuite.sh (limited to 'testsuite/gna') diff --git a/testsuite/gna/issue320/fuu.vhdl b/testsuite/gna/issue320/fuu.vhdl new file mode 100644 index 000000000..d6a076424 --- /dev/null +++ b/testsuite/gna/issue320/fuu.vhdl @@ -0,0 +1,15 @@ +entity fuu is +end entity; + +architecture fum of fuu is + function fie return string is + begin + return "11010011"; + end function; +begin + process + begin + report "expression'right = " & integer'image(fie'RIGHT); + wait; + end process; +end architecture; diff --git a/testsuite/gna/issue320/testsuite.sh b/testsuite/gna/issue320/testsuite.sh new file mode 100755 index 000000000..3dd348552 --- /dev/null +++ b/testsuite/gna/issue320/testsuite.sh @@ -0,0 +1,10 @@ +#! /bin/sh + +. ../../testenv.sh + +analyze fuu.vhdl +elab_simulate fuu + +clean + +echo "Test successful" -- cgit v1.2.3