aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/gna')
-rw-r--r--testsuite/gna/issue792/dut.vhdl21
-rwxr-xr-xtestsuite/gna/issue792/testsuite.sh14
2 files changed, 35 insertions, 0 deletions
diff --git a/testsuite/gna/issue792/dut.vhdl b/testsuite/gna/issue792/dut.vhdl
new file mode 100644
index 000000000..49c299e68
--- /dev/null
+++ b/testsuite/gna/issue792/dut.vhdl
@@ -0,0 +1,21 @@
+entity dut is
+ port(
+ a : in string(1 to 1)
+ );
+end entity dut;
+architecture a of dut is
+ component dut_internal
+ port(
+ a : in string;
+ b : in string
+ );
+ end component dut_internal;
+ signal b : string(1 to 1);
+begin
+ inst : dut_internal
+ port map (
+ a => a
+ -- b => b
+ );
+end architecture a;
+
diff --git a/testsuite/gna/issue792/testsuite.sh b/testsuite/gna/issue792/testsuite.sh
new file mode 100755
index 000000000..30b3c89e0
--- /dev/null
+++ b/testsuite/gna/issue792/testsuite.sh
@@ -0,0 +1,14 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+analyze_failure dut.vhdl
+
+clean
+
+export GHDL_STD_FLAGS=--std=08
+analyze_failure dut.vhdl
+
+clean
+
+echo "Test successful"