From 6baa2e235e18c7a8e83b5d973e4dbf7ff8ba16d9 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sat, 22 May 2021 07:54:33 +0200 Subject: testsuite/gna: add a test for previous commit --- testsuite/gna/bug0100/noconst.vhdl | 8 ++++++++ testsuite/gna/bug0100/testsuite.sh | 1 + 2 files changed, 9 insertions(+) create mode 100644 testsuite/gna/bug0100/noconst.vhdl (limited to 'testsuite') 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 : -- cgit v1.2.3