summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/gna/ticket41/bug.vhdl16
-rw-r--r--testsuite/gna/ticket41/bug1.vhdl14
-rwxr-xr-xtestsuite/gna/ticket41/testsuite.sh10
3 files changed, 40 insertions, 0 deletions
diff --git a/testsuite/gna/ticket41/bug.vhdl b/testsuite/gna/ticket41/bug.vhdl
new file mode 100644
index 0000000..8c4e4a9
--- /dev/null
+++ b/testsuite/gna/ticket41/bug.vhdl
@@ -0,0 +1,16 @@
+package pkg is
+ procedure proc;
+ alias prog_alias is proc[];
+end package;
+
+package body pkg is
+ procedure proc is
+ begin
+ end;
+
+ impure function prog_alias return integer is
+ begin
+ prog_alias;
+ return 0;
+ end;
+end package body;
diff --git a/testsuite/gna/ticket41/bug1.vhdl b/testsuite/gna/ticket41/bug1.vhdl
new file mode 100644
index 0000000..958437c
--- /dev/null
+++ b/testsuite/gna/ticket41/bug1.vhdl
@@ -0,0 +1,14 @@
+entity bug1 is
+
+end bug1;
+
+architecture behav of bug1 is
+ constant c : natural := 5;
+ function c return natural is
+ begin
+ return 7;
+ end;
+begin -- behav
+
+
+end behav;
diff --git a/testsuite/gna/ticket41/testsuite.sh b/testsuite/gna/ticket41/testsuite.sh
new file mode 100755
index 0000000..3d048d5
--- /dev/null
+++ b/testsuite/gna/ticket41/testsuite.sh
@@ -0,0 +1,10 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+analyze bug.vhdl
+analyze_failure bug1.vhdl
+
+clean
+
+echo "Test successful"