From 432c019c1113b880fc554e94e9a66b7efd1d303b Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Wed, 21 Dec 2022 08:26:13 +0100 Subject: testsuite/pyunit/libghd: add process_2 test --- testsuite/pyunit/libghdl/Comments.py | 3 +++ testsuite/pyunit/libghdl/examples/comments/process_2.vhdl | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 testsuite/pyunit/libghdl/examples/comments/process_2.vhdl (limited to 'testsuite/pyunit') 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; -- cgit v1.2.3