aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2021-05-22 07:54:33 +0200
committerTristan Gingold <tgingold@free.fr>2021-05-22 07:54:33 +0200
commit6baa2e235e18c7a8e83b5d973e4dbf7ff8ba16d9 (patch)
tree771ecb0a8e924706a232766186ddbbbc1e3143ce /testsuite
parenta67152819639dd4cc4b6beaaba6ce50a62ef3332 (diff)
downloadghdl-6baa2e235e18c7a8e83b5d973e4dbf7ff8ba16d9.tar.gz
ghdl-6baa2e235e18c7a8e83b5d973e4dbf7ff8ba16d9.tar.bz2
ghdl-6baa2e235e18c7a8e83b5d973e4dbf7ff8ba16d9.zip
testsuite/gna: add a test for previous commit
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/gna/bug0100/noconst.vhdl8
-rwxr-xr-xtestsuite/gna/bug0100/testsuite.sh1
2 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/gna/bug0100/noconst.vhdl b/testsuite/gna/bug0100/noconst.vhdl
new file mode 100644
index 000000000..78284d16e
--- /dev/null
+++ b/testsuite/gna/bug0100/noconst.vhdl
@@ -0,0 +1,8 @@
+entity noconst is
+end noconst;
+
+architecture arch of noconst is
+ type map_type is array(bit) of character;
+ constant smap : map_type := "";
+begin
+end;
diff --git a/testsuite/gna/bug0100/testsuite.sh b/testsuite/gna/bug0100/testsuite.sh
index c557161a3..1eb613911 100755
--- a/testsuite/gna/bug0100/testsuite.sh
+++ b/testsuite/gna/bug0100/testsuite.sh
@@ -24,6 +24,7 @@ analyze_failure --force-analysis attr.vhdl
analyze_failure --force-analysis attr2.vhdl
analyze_failure paren.vhdl
analyze_failure --force-analysis attr3.vhdl
+analyze_failure --force-analysis noconst.vhdl
if analyze_failure --force-analysis notype1.vhdl 2>&1 | grep -q "indexed name"; then
: