aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/pyunit
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/pyunit')
-rw-r--r--testsuite/pyunit/libghdl/Comments.py3
-rw-r--r--testsuite/pyunit/libghdl/examples/comments/process_2.vhdl12
2 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/pyunit/libghdl/Comments.py b/testsuite/pyunit/libghdl/Comments.py
index edb283f79..68dfaf3b5 100644
--- a/testsuite/pyunit/libghdl/Comments.py
+++ b/testsuite/pyunit/libghdl/Comments.py
@@ -290,6 +290,9 @@ class CommentAssociation(Base):
def test_process(self) -> None:
self.checkFile(self._root / "comments/process.vhdl")
+ def test_process_2(self) -> None:
+ self.checkFile(self._root / "comments/process_2.vhdl")
+
def test_multi1(self) -> None:
self.checkFile(self._root / "comments/multi1.vhdl")
diff --git a/testsuite/pyunit/libghdl/examples/comments/process_2.vhdl b/testsuite/pyunit/libghdl/examples/comments/process_2.vhdl
new file mode 100644
index 000000000..d5f9be345
--- /dev/null
+++ b/testsuite/pyunit/libghdl/examples/comments/process_2.vhdl
@@ -0,0 +1,12 @@
+architecture arch of e is
+ signal s, s_n : bit;
+begin
+ p : process (s)
+ -- Comment for :p:
+
+ -- For :v:
+ variable v : boolean;
+ begin
+ s <= not s_n;
+ end process;
+end arch;