diff options
author | Tristan Gingold | 2015-03-31 20:44:40 +0200 |
---|---|---|
committer | Tristan Gingold | 2015-03-31 20:44:40 +0200 |
commit | 1469686228b35ca0793ed28d1614d41a01e9cdb5 (patch) | |
tree | 6a082e12c961cac0f2fea48b82a2ca213d5cef63 /testsuite | |
parent | d43f982a3168b554fd0745c23c59f94503c0a211 (diff) | |
download | ghdl-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.vhd | 14 | ||||
-rwxr-xr-x | testsuite/gna/bug12/testsuite.sh | 10 |
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" |