aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue2116
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2022-07-06 07:07:40 +0200
committerTristan Gingold <tgingold@free.fr>2022-07-06 07:07:40 +0200
commitad6faf2faeaeca59fa1172a849746975d536d0e5 (patch)
treeee18da28530b5c6dc6ad2a5dbb16e893bc379b7a /testsuite/gna/issue2116
parent0c1a7105b9379e75d83dc23650ac995823128bfa (diff)
downloadghdl-ad6faf2faeaeca59fa1172a849746975d536d0e5.tar.gz
ghdl-ad6faf2faeaeca59fa1172a849746975d536d0e5.tar.bz2
ghdl-ad6faf2faeaeca59fa1172a849746975d536d0e5.zip
testsuite/gna: add more tests for #2116
Diffstat (limited to 'testsuite/gna/issue2116')
-rw-r--r--testsuite/gna/issue2116/func4_0.vhdl8
-rw-r--r--testsuite/gna/issue2116/func4_1.vhdl8
-rwxr-xr-xtestsuite/gna/issue2116/testsuite.sh2
3 files changed, 18 insertions, 0 deletions
diff --git a/testsuite/gna/issue2116/func4_0.vhdl b/testsuite/gna/issue2116/func4_0.vhdl
new file mode 100644
index 000000000..1e54efb47
--- /dev/null
+++ b/testsuite/gna/issue2116/func4_0.vhdl
@@ -0,0 +1,8 @@
+entity tb is
+end tb;
+
+architecture behavioral of tb is
+ subtype int30 is integer range -6**30 to 0;
+begin
+ end behavioral;
+
diff --git a/testsuite/gna/issue2116/func4_1.vhdl b/testsuite/gna/issue2116/func4_1.vhdl
new file mode 100644
index 000000000..31de78b16
--- /dev/null
+++ b/testsuite/gna/issue2116/func4_1.vhdl
@@ -0,0 +1,8 @@
+entity tb is
+end tb;
+
+architecture behavioral of tb is
+ subtype int30 is integer range -1 to 0**0;
+begin
+ end behavioral;
+
diff --git a/testsuite/gna/issue2116/testsuite.sh b/testsuite/gna/issue2116/testsuite.sh
index 3f79c4b5d..24d2913d0 100755
--- a/testsuite/gna/issue2116/testsuite.sh
+++ b/testsuite/gna/issue2116/testsuite.sh
@@ -41,6 +41,8 @@ eval2.vhdl
func1.vhdl
func2.vhdl
func3.vhdl
+func4_0.vhdl
+func4_1.vhdl
func4.vhdl
func5.vhdl
func6.vhdl