aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue144
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2016-08-26 04:43:27 +0200
committerTristan Gingold <tgingold@free.fr>2016-08-26 04:43:27 +0200
commit7e8b023ade5609762a455cc9d567cbd0f2dbea48 (patch)
tree323daff0fc31c1fd67745ab83f0f1fe0463cd119 /testsuite/gna/issue144
parent241cee95493ca27931bec90e8d8e584a1da78cab (diff)
downloadghdl-7e8b023ade5609762a455cc9d567cbd0f2dbea48.tar.gz
ghdl-7e8b023ade5609762a455cc9d567cbd0f2dbea48.tar.bz2
ghdl-7e8b023ade5609762a455cc9d567cbd0f2dbea48.zip
Add testcase for issue #144
Diffstat (limited to 'testsuite/gna/issue144')
-rw-r--r--testsuite/gna/issue144/tb.vhdl10
-rwxr-xr-xtestsuite/gna/issue144/testsuite.sh9
2 files changed, 19 insertions, 0 deletions
diff --git a/testsuite/gna/issue144/tb.vhdl b/testsuite/gna/issue144/tb.vhdl
new file mode 100644
index 000000000..1a89c3123
--- /dev/null
+++ b/testsuite/gna/issue144/tb.vhdl
@@ -0,0 +1,10 @@
+library ieee;
+use ieee.std_logic_1164.all;
+
+entity A_tb is
+end entity;
+
+architecture A_tb_impl of A_tb is
+begin
+ a : work.a(a) port map(a => a); -- syntax error here, missing 'entity'
+end architecture;
diff --git a/testsuite/gna/issue144/testsuite.sh b/testsuite/gna/issue144/testsuite.sh
new file mode 100755
index 000000000..8a9a6eed3
--- /dev/null
+++ b/testsuite/gna/issue144/testsuite.sh
@@ -0,0 +1,9 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+analyze_failure tb.vhdl
+
+clean
+
+echo "Test successful"