diff options
-rw-r--r-- | testsuite/pyunit/libghdl/Comments.py | 3 | ||||
-rw-r--r-- | testsuite/pyunit/libghdl/examples/comments/arch_inside_2.vhdl | 10 |
2 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/pyunit/libghdl/Comments.py b/testsuite/pyunit/libghdl/Comments.py index ea0bf81ed..48321f71d 100644 --- a/testsuite/pyunit/libghdl/Comments.py +++ b/testsuite/pyunit/libghdl/Comments.py @@ -162,6 +162,9 @@ class CommentAssociation(Base): def test_arch_inside(self) -> None: self.checkFile(self._root / "comments/arch_inside.vhdl") + def test_arch_inside_2(self) -> None: + self.checkFile(self._root / "comments/arch_inside_2.vhdl") + @expectedFailure def test_pkg_inside_fail(self) -> None: self.checkFile(self._root / "comments/pkg_inside_fail.vhdl") diff --git a/testsuite/pyunit/libghdl/examples/comments/arch_inside_2.vhdl b/testsuite/pyunit/libghdl/examples/comments/arch_inside_2.vhdl new file mode 100644 index 000000000..cace77824 --- /dev/null +++ b/testsuite/pyunit/libghdl/examples/comments/arch_inside_2.vhdl @@ -0,0 +1,10 @@ +-- comment for :a2: +architecture a2 of e2 is + -- comments in design units (python doc-string style) :a2: + --:a2: might be multi line + + -- comment for :s: + signal s : bit; +begin + +end architecture; |