aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2021-08-06 03:22:34 +0200
committerTristan Gingold <tgingold@free.fr>2021-08-06 03:22:34 +0200
commitece6e78f537b4f16b020d2eb258038d00a794559 (patch)
treec624c57391a218ad64864c55625c17130e1ccd45
parent8a063dc908baaa5be994f30b4f1d080223d1c5dd (diff)
downloadghdl-ece6e78f537b4f16b020d2eb258038d00a794559.tar.gz
ghdl-ece6e78f537b4f16b020d2eb258038d00a794559.tar.bz2
ghdl-ece6e78f537b4f16b020d2eb258038d00a794559.zip
testsuite/gna: add a test (close #1667)
-rw-r--r--testsuite/gna/issue1667/repro.vhdl14
-rwxr-xr-xtestsuite/gna/issue1667/testsuite.sh11
2 files changed, 25 insertions, 0 deletions
diff --git a/testsuite/gna/issue1667/repro.vhdl b/testsuite/gna/issue1667/repro.vhdl
new file mode 100644
index 000000000..deb17a850
--- /dev/null
+++ b/testsuite/gna/issue1667/repro.vhdl
@@ -0,0 +1,14 @@
+entity repro is
+end;
+
+architecture behav of repro is
+ type string_vector is array (natural range <>) of string;
+
+ type tokenized_line is record
+ op: string;
+ params: string_vector;
+ end record;
+
+ constant k : tokenized_line := ("", ("", ""));
+begin
+end;
diff --git a/testsuite/gna/issue1667/testsuite.sh b/testsuite/gna/issue1667/testsuite.sh
new file mode 100755
index 000000000..8d22a2073
--- /dev/null
+++ b/testsuite/gna/issue1667/testsuite.sh
@@ -0,0 +1,11 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+export GHDL_STD_FLAGS=--std=08
+analyze repro.vhdl
+elab_simulate repro
+
+clean
+
+echo "Test successful"