From f4ec019f5f2e826f715a3bdf2285216008e833e7 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Tue, 19 May 2015 20:36:47 +0200 Subject: Testcase for ticket 73. --- testsuite/gna/ticket73/bug.vhdl | 17 +++++++++++++++++ testsuite/gna/ticket73/testsuite.sh | 9 +++++++++ 2 files changed, 26 insertions(+) create mode 100644 testsuite/gna/ticket73/bug.vhdl create mode 100755 testsuite/gna/ticket73/testsuite.sh (limited to 'testsuite/gna') diff --git a/testsuite/gna/ticket73/bug.vhdl b/testsuite/gna/ticket73/bug.vhdl new file mode 100644 index 000000000..89f53db3d --- /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 000000000..0440719e6 --- /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" -- cgit v1.2.3