From 05d2df31745673af742c6ae608b0eda83eded8de Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sun, 27 Nov 2016 06:10:48 +0100 Subject: Add testcase for issue reported on gitter. --- testsuite/gna/bug066/repro.vhdl | 17 +++++++++++++++++ testsuite/gna/bug066/testsuite.sh | 9 +++++++++ 2 files changed, 26 insertions(+) create mode 100644 testsuite/gna/bug066/repro.vhdl create mode 100755 testsuite/gna/bug066/testsuite.sh 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" -- cgit v1.2.3