aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/bug0108/pkg.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/gna/bug0108/pkg.vhdl')
-rw-r--r--testsuite/gna/bug0108/pkg.vhdl11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/gna/bug0108/pkg.vhdl b/testsuite/gna/bug0108/pkg.vhdl
new file mode 100644
index 000000000..b6321ba67
--- /dev/null
+++ b/testsuite/gna/bug0108/pkg.vhdl
@@ -0,0 +1,11 @@
+package name1 is
+ constant c : natural := 4;
+ function get_c return natural;
+end name1;
+
+package body name1 is
+ function get_c return natural is
+ begin
+ return c;
+ end get_c;
+end name1;