aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/bug081/elab_func.vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2023-01-14 19:59:25 +0100
committerTristan Gingold <tgingold@free.fr>2023-01-15 11:36:06 +0100
commitaa440f398761c13c720f358198f8a4f93d880f61 (patch)
tree87e5f55d84ed5afc957dec7bfa29f1002d4014dd /testsuite/gna/bug081/elab_func.vhdl
parent3ed03181ff403e2805d36c425b1e3aa5725fe3d7 (diff)
downloadghdl-aa440f398761c13c720f358198f8a4f93d880f61.tar.gz
ghdl-aa440f398761c13c720f358198f8a4f93d880f61.tar.bz2
ghdl-aa440f398761c13c720f358198f8a4f93d880f61.zip
testsuite/gna/bug081: add tests for previous commit
Diffstat (limited to 'testsuite/gna/bug081/elab_func.vhdl')
-rw-r--r--testsuite/gna/bug081/elab_func.vhdl11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/gna/bug081/elab_func.vhdl b/testsuite/gna/bug081/elab_func.vhdl
new file mode 100644
index 000000000..8a951837c
--- /dev/null
+++ b/testsuite/gna/bug081/elab_func.vhdl
@@ -0,0 +1,11 @@
+package elab_func is
+ function f return natural;
+end elab_func;
+
+package body elab_func is
+ constant c : natural := f;
+ function f return natural is
+ begin
+ return 5;
+ end f;
+end elab_func;