From add7dec17997f8678ed6ba5061ed1abe86865496 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Thu, 14 May 2015 22:08:19 +0200 Subject: Testcase for ticket 63. --- testsuite/gna/ticket63/bug.vhdl | 14 ++++++++++++++ testsuite/gna/ticket63/testsuite.sh | 8 ++++++++ 2 files changed, 22 insertions(+) create mode 100644 testsuite/gna/ticket63/bug.vhdl create mode 100755 testsuite/gna/ticket63/testsuite.sh (limited to 'testsuite/gna/ticket63') diff --git a/testsuite/gna/ticket63/bug.vhdl b/testsuite/gna/ticket63/bug.vhdl new file mode 100644 index 000000000..4c32a5b93 --- /dev/null +++ b/testsuite/gna/ticket63/bug.vhdl @@ -0,0 +1,14 @@ +entity ent is +end entity; + +architecture a of ent is +begin + main : process is + constant str : string(1 to 3) := "abc"; + type line is access string; + variable l : line; + begin + l := new str(1 to 2); -- Crashes + l := new string'(str(1 to 2)); -- Works + end process; +end architecture; diff --git a/testsuite/gna/ticket63/testsuite.sh b/testsuite/gna/ticket63/testsuite.sh new file mode 100755 index 000000000..e2d8f1e03 --- /dev/null +++ b/testsuite/gna/ticket63/testsuite.sh @@ -0,0 +1,8 @@ +#! /bin/sh + +. ../../testenv.sh + +analyze_failure bug.vhdl +clean + +echo "Test successful" -- cgit v1.2.3