diff options
-rw-r--r-- | testsuite/gna/ticket83/bug.vhdl | 15 | ||||
-rwxr-xr-x | testsuite/gna/ticket83/testsuite.sh | 8 |
2 files changed, 23 insertions, 0 deletions
diff --git a/testsuite/gna/ticket83/bug.vhdl b/testsuite/gna/ticket83/bug.vhdl new file mode 100644 index 0000000..616b419 --- /dev/null +++ b/testsuite/gna/ticket83/bug.vhdl @@ -0,0 +1,15 @@ +entity ent is +end entity; + +architecture a of ent is +begin + main : process + function foo return string is + variable s : string(1 to 1); -- Causes exception + begin + return (0 => '0'); + end function; + begin + wait; + end process; +end architecture; diff --git a/testsuite/gna/ticket83/testsuite.sh b/testsuite/gna/ticket83/testsuite.sh new file mode 100755 index 0000000..e2d8f1e --- /dev/null +++ b/testsuite/gna/ticket83/testsuite.sh @@ -0,0 +1,8 @@ +#! /bin/sh + +. ../../testenv.sh + +analyze_failure bug.vhdl +clean + +echo "Test successful" |