aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/bug066
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2016-11-27 06:10:48 +0100
committerTristan Gingold <tgingold@free.fr>2016-12-05 03:25:21 +0100
commit05d2df31745673af742c6ae608b0eda83eded8de (patch)
treeb386d7b25e702c009f378143e238a66dffc3dd5b /testsuite/gna/bug066
parent0d58d552bc3ec40f0dec6ab68fddbc619c7395b0 (diff)
downloadghdl-05d2df31745673af742c6ae608b0eda83eded8de.tar.gz
ghdl-05d2df31745673af742c6ae608b0eda83eded8de.tar.bz2
ghdl-05d2df31745673af742c6ae608b0eda83eded8de.zip
Add testcase for issue reported on gitter.
Diffstat (limited to 'testsuite/gna/bug066')
-rw-r--r--testsuite/gna/bug066/repro.vhdl17
-rwxr-xr-xtestsuite/gna/bug066/testsuite.sh9
2 files changed, 26 insertions, 0 deletions
diff --git a/testsuite/gna/bug066/repro.vhdl b/testsuite/gna/bug066/repro.vhdl
new file mode 100644
index 000000000..3ebe995fc
--- /dev/null
+++ b/testsuite/gna/bug066/repro.vhdl
@@ -0,0 +1,17 @@
+package foo is
+ procedure bar (signal a, b : in bit; signal c : out bit);
+ procedure bar (signal a, b, c : in bit; signal d : out bit);
+end package foo;
+
+package body foo is
+ procedure bar (signal a, b : in bit; signal c : out bit) is
+ begin
+ c <= a xor b;
+ end procedure bar;
+
+ procedure bar (signal a, b, c : in bit; signal d : out bit)
+ is
+ begin
+ d <= a xor b xor c;
+ end procedure bar;
+end package body foo;
diff --git a/testsuite/gna/bug066/testsuite.sh b/testsuite/gna/bug066/testsuite.sh
new file mode 100755
index 000000000..a08478e96
--- /dev/null
+++ b/testsuite/gna/bug066/testsuite.sh
@@ -0,0 +1,9 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+analyze repro.vhdl
+
+clean
+
+echo "Test successful"