From d40c73de021a6c07d73a7f17e499f9ba6772f164 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Wed, 2 Sep 2015 18:23:07 +0200 Subject: Add bug022 (unused entity linked). --- testsuite/gna/bug022/test.vhdl | 20 ++++++++++++++++++++ testsuite/gna/bug022/testsuite.sh | 10 ++++++++++ 2 files changed, 30 insertions(+) create mode 100644 testsuite/gna/bug022/test.vhdl create mode 100755 testsuite/gna/bug022/testsuite.sh 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" -- cgit v1.2.3