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