diff options
author | Tristan Gingold <tgingold@free.fr> | 2015-09-02 18:23:07 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2015-09-02 18:23:07 +0200 |
commit | d40c73de021a6c07d73a7f17e499f9ba6772f164 (patch) | |
tree | 9c6ef4a05c803e4d32db14757f380e7f90ed6eff | |
parent | 40aff7e812f106911b7302cae1fe8fde760639ec (diff) | |
download | ghdl-d40c73de021a6c07d73a7f17e499f9ba6772f164.tar.gz ghdl-d40c73de021a6c07d73a7f17e499f9ba6772f164.tar.bz2 ghdl-d40c73de021a6c07d73a7f17e499f9ba6772f164.zip |
Add bug022 (unused entity linked).
-rw-r--r-- | testsuite/gna/bug022/test.vhdl | 20 | ||||
-rwxr-xr-x | testsuite/gna/bug022/testsuite.sh | 10 |
2 files changed, 30 insertions, 0 deletions
diff --git a/testsuite/gna/bug022/test.vhdl b/testsuite/gna/bug022/test.vhdl new file mode 100644 index 000000000..ba696cfcd --- /dev/null +++ b/testsuite/gna/bug022/test.vhdl @@ -0,0 +1,20 @@ +entity test is +end entity test; + +entity internal is +end entity internal; +architecture arch of internal is begin +end architecture arch; + +entity internal_bis is +end entity internal_bis; +architecture arch of internal_bis is begin +end architecture arch; + +architecture first of test is begin + test_instantiation : entity work.internal; +end architecture first; + +architecture second of test is begin + test_instantiation : entity work.internal_bis; +end architecture second; diff --git a/testsuite/gna/bug022/testsuite.sh b/testsuite/gna/bug022/testsuite.sh new file mode 100755 index 000000000..00f6e066c --- /dev/null +++ b/testsuite/gna/bug022/testsuite.sh @@ -0,0 +1,10 @@ +#! /bin/sh + +. ../../testenv.sh + +analyze test.vhdl +elab_simulate test + +clean + +echo "Test successful" |