aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-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"