aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2022-12-07 07:35:34 +0100
committerTristan Gingold <tgingold@free.fr>2022-12-07 07:35:34 +0100
commit674246f8351f5e59d3b048e777053f2903f12ea8 (patch)
treeb7eee5cdd27ad92f5207f354c437aa3ef1e5add7 /testsuite
parent0ab45a7186882093a2f619f165ff66e4a22fac76 (diff)
downloadghdl-674246f8351f5e59d3b048e777053f2903f12ea8.tar.gz
ghdl-674246f8351f5e59d3b048e777053f2903f12ea8.tar.bz2
ghdl-674246f8351f5e59d3b048e777053f2903f12ea8.zip
testsuite/pyunit/libghdl: add a test for comments
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/pyunit/libghdl/Comments.py3
-rw-r--r--testsuite/pyunit/libghdl/examples/comments/arch_inside_2.vhdl10
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;