aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2017-09-28 03:47:16 +0200
committerTristan Gingold <tgingold@free.fr>2017-09-28 03:47:16 +0200
commitbd6d9abad8619e348fdf8fa53c0f62211ab161f6 (patch)
treee7e040408e9c0b886c715a01b8a37f35d6fc4e4b /testsuite
parentcc71215a2899941042efc668ce33dd38c8ce8d2a (diff)
downloadghdl-bd6d9abad8619e348fdf8fa53c0f62211ab161f6.tar.gz
ghdl-bd6d9abad8619e348fdf8fa53c0f62211ab161f6.tar.bz2
ghdl-bd6d9abad8619e348fdf8fa53c0f62211ab161f6.zip
Reproducer for #419
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/gna/issue419/bug.vhdl15
-rw-r--r--testsuite/gna/issue419/bug2.vhdl32
-rw-r--r--testsuite/gna/issue419/bug3.vhdl27
-rwxr-xr-xtestsuite/gna/issue419/testsuite.sh11
4 files changed, 85 insertions, 0 deletions
diff --git a/testsuite/gna/issue419/bug.vhdl b/testsuite/gna/issue419/bug.vhdl
new file mode 100644
index 000000000..311db4cac
--- /dev/null
+++ b/testsuite/gna/issue419/bug.vhdl
@@ -0,0 +1,15 @@
+package pkg is
+ procedure other_proc(value : boolean);
+ procedure other_proc(value : integer);
+
+ procedure proc(other_proc : integer);
+ procedure proc;
+
+end package;
+
+package body pkg is
+ procedure proc2 is
+ begin
+ proc(other_proc => 0);
+ end;
+end package body;
diff --git a/testsuite/gna/issue419/bug2.vhdl b/testsuite/gna/issue419/bug2.vhdl
new file mode 100644
index 000000000..ee813c6cc
--- /dev/null
+++ b/testsuite/gna/issue419/bug2.vhdl
@@ -0,0 +1,32 @@
+package pkg is
+ procedure other_proc(value : boolean);
+ procedure other_proc(value : integer);
+
+ procedure proc(other_proc : integer);
+ procedure proc;
+
+end package;
+
+package body pkg is
+ procedure other_proc(value : boolean) is
+ begin
+ null;
+ end;
+ procedure other_proc(value : integer) is
+ begin
+ null;
+ end;
+
+ procedure proc(other_proc : integer) is
+ begin
+ null;
+ end;
+ procedure proc is
+ begin
+ null;
+ end;
+ procedure proc2 is
+ begin
+ proc(other_proc => 0);
+ end;
+end package body;
diff --git a/testsuite/gna/issue419/bug3.vhdl b/testsuite/gna/issue419/bug3.vhdl
new file mode 100644
index 000000000..7573be7e0
--- /dev/null
+++ b/testsuite/gna/issue419/bug3.vhdl
@@ -0,0 +1,27 @@
+package pkg is
+ procedure other_proc(value : boolean);
+ procedure other_proc(value : integer);
+
+ procedure proc;
+
+end package;
+
+package body pkg is
+ procedure other_proc(value : boolean) is
+ begin
+ null;
+ end;
+ procedure other_proc(value : integer) is
+ begin
+ null;
+ end;
+
+ procedure proc is
+ begin
+ null;
+ end;
+ procedure proc2 is
+ begin
+ proc(other_proc => 0);
+ end;
+end package body;
diff --git a/testsuite/gna/issue419/testsuite.sh b/testsuite/gna/issue419/testsuite.sh
new file mode 100755
index 000000000..3c33cd323
--- /dev/null
+++ b/testsuite/gna/issue419/testsuite.sh
@@ -0,0 +1,11 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+analyze_failure bug.vhdl
+analyze_failure bug3.vhdl
+analyze bug2.vhdl
+
+clean
+
+echo "Test successful"