summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorTristan Gingold2015-03-31 20:44:40 +0200
committerTristan Gingold2015-03-31 20:44:40 +0200
commit1469686228b35ca0793ed28d1614d41a01e9cdb5 (patch)
tree6a082e12c961cac0f2fea48b82a2ca213d5cef63 /testsuite
parentd43f982a3168b554fd0745c23c59f94503c0a211 (diff)
downloadghdl-1469686228b35ca0793ed28d1614d41a01e9cdb5.tar.gz
ghdl-1469686228b35ca0793ed28d1614d41a01e9cdb5.tar.bz2
ghdl-1469686228b35ca0793ed28d1614d41a01e9cdb5.zip
Fix entity instantiation with extended identifier.
From a patch by Ole Myren Rohne.
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/gna/bug12/demo.vhd14
-rwxr-xr-xtestsuite/gna/bug12/testsuite.sh10
2 files changed, 24 insertions, 0 deletions
diff --git a/testsuite/gna/bug12/demo.vhd b/testsuite/gna/bug12/demo.vhd
new file mode 100644
index 0000000..2b97782
--- /dev/null
+++ b/testsuite/gna/bug12/demo.vhd
@@ -0,0 +1,14 @@
+entity bar is
+end entity bar;
+entity \foo\ is
+ port (test : in bit);
+end entity \foo\;
+architecture structural of \foo\ is
+begin -- architecture structural
+end architecture structural;
+architecture structural of bar is
+ signal test : bit;
+begin -- architecture structural
+ foo_1: entity work.\foo\
+ port map (test => test);
+end architecture structural;
diff --git a/testsuite/gna/bug12/testsuite.sh b/testsuite/gna/bug12/testsuite.sh
new file mode 100755
index 0000000..9b3d98c
--- /dev/null
+++ b/testsuite/gna/bug12/testsuite.sh
@@ -0,0 +1,10 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+analyze demo.vhd
+elab_simulate bar structural
+
+clean
+
+echo "Test successful"