aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testsuite/gna/bug041/foo.vhdl11
-rwxr-xr-xtestsuite/gna/bug041/testsuite.sh9
2 files changed, 20 insertions, 0 deletions
diff --git a/testsuite/gna/bug041/foo.vhdl b/testsuite/gna/bug041/foo.vhdl
new file mode 100644
index 000000000..3d12760b2
--- /dev/null
+++ b/testsuite/gna/bug041/foo.vhdl
@@ -0,0 +1,11 @@
+entity foo is
+end entity;
+
+architecture fum of foo is
+ signal a: bit_vector (1 to 1);
+ signal b: bit_vector (1 to 1);
+begin
+
+ a(1 to 1) <= b(1);
+
+end architecture;
diff --git a/testsuite/gna/bug041/testsuite.sh b/testsuite/gna/bug041/testsuite.sh
new file mode 100755
index 000000000..88cd64e80
--- /dev/null
+++ b/testsuite/gna/bug041/testsuite.sh
@@ -0,0 +1,9 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+analyze_failure foo.vhdl
+
+clean
+
+echo "Test successful"