aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/pyunit/libghdl/func.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/pyunit/libghdl/func.vhdl')
-rw-r--r--testsuite/pyunit/libghdl/func.vhdl8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/pyunit/libghdl/func.vhdl b/testsuite/pyunit/libghdl/func.vhdl
new file mode 100644
index 000000000..df9fcd9a2
--- /dev/null
+++ b/testsuite/pyunit/libghdl/func.vhdl
@@ -0,0 +1,8 @@
+package p is
+ constant c : natural := 1;
+
+ -- :log2: as functions are longer in definitions, it might be written before
+ function log2(param : positive) return natural;
+end p;
+
+