diff options
author | Tristan Gingold <tgingold@free.fr> | 2021-04-16 20:26:03 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2021-04-16 20:26:03 +0200 |
commit | be2e3aace30460c7cc92b4f548cf7bbd09dbd6b6 (patch) | |
tree | 8687bd80d07d984f51e9826f38fb73dca3d899a1 | |
parent | 1e32a22c5ebbb52402aa1e45734bd9ec8f206c15 (diff) | |
download | ghdl-be2e3aace30460c7cc92b4f548cf7bbd09dbd6b6.tar.gz ghdl-be2e3aace30460c7cc92b4f548cf7bbd09dbd6b6.tar.bz2 ghdl-be2e3aace30460c7cc92b4f548cf7bbd09dbd6b6.zip |
testsuite/gna: add a test for #1727
-rw-r--r-- | testsuite/gna/issue1727/ent.vhdl | 14 | ||||
-rwxr-xr-x | testsuite/gna/issue1727/testsuite.sh | 10 |
2 files changed, 24 insertions, 0 deletions
diff --git a/testsuite/gna/issue1727/ent.vhdl b/testsuite/gna/issue1727/ent.vhdl new file mode 100644 index 000000000..2ab6defc3 --- /dev/null +++ b/testsuite/gna/issue1727/ent.vhdl @@ -0,0 +1,14 @@ +entity ent is +end entity; + +architecture beh of ent is +type t_type is (NAME1, NAME2); +begin + process + constant c_string : string := "something"; + begin + report "Length is " & to_string(c_string'lenght); + report "Length is " & to_string(t_type'image(NAME1)'lenght); + wait; + end process; +end architecture beh; diff --git a/testsuite/gna/issue1727/testsuite.sh b/testsuite/gna/issue1727/testsuite.sh new file mode 100755 index 000000000..d09d0cc6f --- /dev/null +++ b/testsuite/gna/issue1727/testsuite.sh @@ -0,0 +1,10 @@ +#! /bin/sh + +. ../../testenv.sh + +export GHDL_STD_FLAGS=--std=08 +analyze_failure ent.vhdl + +clean + +echo "Test successful" |