diff options
-rw-r--r-- | testsuite/gna/ticket73/bug.vhdl | 17 | ||||
-rwxr-xr-x | testsuite/gna/ticket73/testsuite.sh | 9 |
2 files changed, 26 insertions, 0 deletions
diff --git a/testsuite/gna/ticket73/bug.vhdl b/testsuite/gna/ticket73/bug.vhdl new file mode 100644 index 0000000..89f53db --- /dev/null +++ b/testsuite/gna/ticket73/bug.vhdl @@ -0,0 +1,17 @@ +entity ent is +end entity; + +architecture a of ent is + procedure proc(s : string) is + begin + report integer'image(s'left); + report integer'image(s'right); + report s; + end procedure; +begin + main : process + begin + proc(s(4 to 15) => "Hello world!"); + wait; + end process; +end architecture; diff --git a/testsuite/gna/ticket73/testsuite.sh b/testsuite/gna/ticket73/testsuite.sh new file mode 100755 index 0000000..0440719 --- /dev/null +++ b/testsuite/gna/ticket73/testsuite.sh @@ -0,0 +1,9 @@ +#! /bin/sh + +. ../../testenv.sh + +analyze bug.vhdl +elab_simulate ent +clean + +echo "Test successful" |