aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2022-12-21 08:26:13 +0100
committerTristan Gingold <tgingold@free.fr>2022-12-21 08:26:13 +0100
commit432c019c1113b880fc554e94e9a66b7efd1d303b (patch)
tree3db1213476a58a7aeb367b74b488ea88fc1f4603 /testsuite
parent311424ce8850091136082561ecf1be358081b65a (diff)
downloadghdl-432c019c1113b880fc554e94e9a66b7efd1d303b.tar.gz
ghdl-432c019c1113b880fc554e94e9a66b7efd1d303b.tar.bz2
ghdl-432c019c1113b880fc554e94e9a66b7efd1d303b.zip
testsuite/pyunit/libghd: add process_2 test
Diffstat (limited to 'testsuite')
-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;