aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2017-07-27 05:44:14 +0200
committerTristan Gingold <tgingold@free.fr>2017-07-27 05:44:14 +0200
commit59e5071d5eb9ba98fa0c2189e48359d416165b4d (patch)
treec38320c8cc692773696c0cd2ae8f070ba1ec1c79 /testsuite
parent4ebaa72dec35a989ac1b51062d113dca5583ecae (diff)
downloadghdl-59e5071d5eb9ba98fa0c2189e48359d416165b4d.tar.gz
ghdl-59e5071d5eb9ba98fa0c2189e48359d416165b4d.tar.bz2
ghdl-59e5071d5eb9ba98fa0c2189e48359d416165b4d.zip
Add testcase for #392
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/gna/issue392/e.vhdl7
-rwxr-xr-xtestsuite/gna/issue392/testsuite.sh10
2 files changed, 17 insertions, 0 deletions
diff --git a/testsuite/gna/issue392/e.vhdl b/testsuite/gna/issue392/e.vhdl
new file mode 100644
index 000000000..57e4b8253
--- /dev/null
+++ b/testsuite/gna/issue392/e.vhdl
@@ -0,0 +1,7 @@
+entity e is end entity;
+architecture a of e is
+ type ar1 is array(integer, integer) of integer;
+ type ar2 is array(integer range -2e9 to 2e9, integer range -2e9 to 2e9) of integer;
+ type ar3 is array(integer range -1e9 to 2e9, integer range -1e9 to 2e9) of integer;
+begin
+end architecture;
diff --git a/testsuite/gna/issue392/testsuite.sh b/testsuite/gna/issue392/testsuite.sh
new file mode 100755
index 000000000..57536e34f
--- /dev/null
+++ b/testsuite/gna/issue392/testsuite.sh
@@ -0,0 +1,10 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+analyze e.vhdl
+elab_simulate e
+
+clean
+
+echo "Test successful"