aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testsuite/gna/issue2303/ent.vhdl8
-rwxr-xr-xtestsuite/gna/issue2303/testsuite.sh11
2 files changed, 19 insertions, 0 deletions
diff --git a/testsuite/gna/issue2303/ent.vhdl b/testsuite/gna/issue2303/ent.vhdl
new file mode 100644
index 000000000..20e5ef280
--- /dev/null
+++ b/testsuite/gna/issue2303/ent.vhdl
@@ -0,0 +1,8 @@
+entity ent is
+end entity;
+
+architecture a of ent is
+ type type_t is range 0 to 8;
+ constant foo : type_t := 3 ** 2;
+begin
+end architecture;
diff --git a/testsuite/gna/issue2303/testsuite.sh b/testsuite/gna/issue2303/testsuite.sh
new file mode 100755
index 000000000..635505c1a
--- /dev/null
+++ b/testsuite/gna/issue2303/testsuite.sh
@@ -0,0 +1,11 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+export GHDL_STD_FLAGS=--std=08
+analyze ent.vhdl
+elab_simulate_failure ent
+
+clean
+
+echo "Test successful"