diff options
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/gna/issue623/crash.vhdl | 14 | ||||
-rwxr-xr-x | testsuite/gna/issue623/testsuite.sh | 10 |
2 files changed, 24 insertions, 0 deletions
diff --git a/testsuite/gna/issue623/crash.vhdl b/testsuite/gna/issue623/crash.vhdl new file mode 100644 index 000000000..a35cfddb4 --- /dev/null +++ b/testsuite/gna/issue623/crash.vhdl @@ -0,0 +1,14 @@ +entity crash_entity is end entity; + +architecture default of crash_entity is + type foo_t is record + a, b : bit; + end record; + + function func return bit is + variable v : foo_t(0 to 1); + begin + return '1'; + end function; +begin +end architecture; diff --git a/testsuite/gna/issue623/testsuite.sh b/testsuite/gna/issue623/testsuite.sh new file mode 100755 index 000000000..c3c7bc3dd --- /dev/null +++ b/testsuite/gna/issue623/testsuite.sh @@ -0,0 +1,10 @@ +#! /bin/sh + +. ../../testenv.sh + +export GHDL_STD_FLAGS=--std=08 +analyze_failure crash.vhdl + +clean + +echo "Test successful" |