summaryrefslogtreecommitdiff
path: root/testsuite/gna/bug022/test.vhdl
diff options
context:
space:
mode:
authorTristan Gingold2015-09-02 18:23:07 +0200
committerTristan Gingold2015-09-02 18:23:07 +0200
commitd40c73de021a6c07d73a7f17e499f9ba6772f164 (patch)
tree9c6ef4a05c803e4d32db14757f380e7f90ed6eff /testsuite/gna/bug022/test.vhdl
parent40aff7e812f106911b7302cae1fe8fde760639ec (diff)
downloadghdl-d40c73de021a6c07d73a7f17e499f9ba6772f164.tar.gz
ghdl-d40c73de021a6c07d73a7f17e499f9ba6772f164.tar.bz2
ghdl-d40c73de021a6c07d73a7f17e499f9ba6772f164.zip
Add bug022 (unused entity linked).
Diffstat (limited to 'testsuite/gna/bug022/test.vhdl')
-rw-r--r--testsuite/gna/bug022/test.vhdl20
1 files changed, 20 insertions, 0 deletions
diff --git a/testsuite/gna/bug022/test.vhdl b/testsuite/gna/bug022/test.vhdl
new file mode 100644
index 0000000..ba696cf
--- /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;