diff options
-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" |