aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-04-17 08:04:26 +0200
committerTristan Gingold <tgingold@free.fr>2020-04-17 08:04:26 +0200
commit25879b2e1b2ef16a0f21b96e0bd51e40b4acd765 (patch)
treea1ffa9c1db981d32a6380621e42e0f712198c328 /testsuite/synth
parent0c48fe92b4ac3c29a4a8014d92440ee4564e4fdb (diff)
downloadghdl-25879b2e1b2ef16a0f21b96e0bd51e40b4acd765.tar.gz
ghdl-25879b2e1b2ef16a0f21b96e0bd51e40b4acd765.tar.bz2
ghdl-25879b2e1b2ef16a0f21b96e0bd51e40b4acd765.zip
testsuite/synth: add a testcase for #1236
Diffstat (limited to 'testsuite/synth')
-rw-r--r--testsuite/synth/issue1236/issue.vhdl10
-rwxr-xr-xtestsuite/synth/issue1236/testsuite.sh8
2 files changed, 18 insertions, 0 deletions
diff --git a/testsuite/synth/issue1236/issue.vhdl b/testsuite/synth/issue1236/issue.vhdl
new file mode 100644
index 000000000..48e9b8647
--- /dev/null
+++ b/testsuite/synth/issue1236/issue.vhdl
@@ -0,0 +1,10 @@
+library ieee;
+use ieee.std_logic_1164.all;
+
+entity issue is
+ generic (type t_type);
+end issue;
+
+architecture beh of issue is
+begin
+end architecture beh;
diff --git a/testsuite/synth/issue1236/testsuite.sh b/testsuite/synth/issue1236/testsuite.sh
new file mode 100755
index 000000000..474c4277a
--- /dev/null
+++ b/testsuite/synth/issue1236/testsuite.sh
@@ -0,0 +1,8 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+GHDL_STD_FLAGS=--std=08
+synth_failure issue.vhdl -e
+
+echo "Test successful"