aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/pyunit/libghdl/examples/comments/var.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/pyunit/libghdl/examples/comments/var.vhdl')
-rw-r--r--testsuite/pyunit/libghdl/examples/comments/var.vhdl12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/pyunit/libghdl/examples/comments/var.vhdl b/testsuite/pyunit/libghdl/examples/comments/var.vhdl
new file mode 100644
index 000000000..9be81044f
--- /dev/null
+++ b/testsuite/pyunit/libghdl/examples/comments/var.vhdl
@@ -0,0 +1,12 @@
+architecture arch of ent is
+begin
+ process
+ -- Comment for :v:
+ variable v : natural;
+ begin
+ while v < 10 loop
+ v := v + 1;
+ end loop;
+ wait;
+ end process;
+end arch;