diff options
author | Tristan Gingold <tgingold@free.fr> | 2022-12-04 08:15:07 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2022-12-04 08:15:48 +0100 |
commit | 60c43acaf82696dabdbf8a88138a656a9bde982c (patch) | |
tree | 23dc520cb30efdbe0e1b040d9135fa2379e7affb /testsuite/pyunit/libghdl | |
parent | 01660fb74049c5258f0e2868e0a0c5e89446de8d (diff) | |
download | ghdl-60c43acaf82696dabdbf8a88138a656a9bde982c.tar.gz ghdl-60c43acaf82696dabdbf8a88138a656a9bde982c.tar.bz2 ghdl-60c43acaf82696dabdbf8a88138a656a9bde982c.zip |
testsuite/pyunit/libghdl: add ent_arch test
Diffstat (limited to 'testsuite/pyunit/libghdl')
-rw-r--r-- | testsuite/pyunit/libghdl/Comments.py | 3 | ||||
-rw-r--r-- | testsuite/pyunit/libghdl/ent_arch.vhdl | 10 |
2 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/pyunit/libghdl/Comments.py b/testsuite/pyunit/libghdl/Comments.py index 41bdacc66..ff45a8057 100644 --- a/testsuite/pyunit/libghdl/Comments.py +++ b/testsuite/pyunit/libghdl/Comments.py @@ -153,6 +153,9 @@ class Instantiate(TestCase): def test_entity_inside(self) -> None: self.checkFile(self._root / "ent_inside.vhdl") + def test_entity_arch(self) -> None: + self.checkFile(self._root / "ent_arch.vhdl") + @expectedFailure def test_arch_inside_fail(self) -> None: self.checkFile(self._root / "arch_inside_fail.vhdl") diff --git a/testsuite/pyunit/libghdl/ent_arch.vhdl b/testsuite/pyunit/libghdl/ent_arch.vhdl new file mode 100644 index 000000000..2283de701 --- /dev/null +++ b/testsuite/pyunit/libghdl/ent_arch.vhdl @@ -0,0 +1,10 @@ +-- :e1: comments before design units (javadoc / .net documentation style) +-- :e1: might be multiline +entity e1 is +end entity; + +-- :a1: comments before design units +-- :a1: might be multiline +architecture a1 of e1 is +begin +end architecture; |