aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/gna')
-rw-r--r--testsuite/gna/issue1646/test.vhdl12
-rwxr-xr-xtestsuite/gna/issue1646/testsuite.sh9
2 files changed, 21 insertions, 0 deletions
diff --git a/testsuite/gna/issue1646/test.vhdl b/testsuite/gna/issue1646/test.vhdl
new file mode 100644
index 000000000..865eb5414
--- /dev/null
+++ b/testsuite/gna/issue1646/test.vhdl
@@ -0,0 +1,12 @@
+entity test is
+end entity;
+
+architecture arch of test is
+ -- This works:
+ --subtype y_vec is real_vector(0 to 3);
+ --type realvec_file is file of y_vec;
+
+ -- This complains bout 'index constraint not allowed here'
+ type realvec_file is file of real_vector(0 to 3);
+begin
+end arch;
diff --git a/testsuite/gna/issue1646/testsuite.sh b/testsuite/gna/issue1646/testsuite.sh
new file mode 100755
index 000000000..8e20eb85f
--- /dev/null
+++ b/testsuite/gna/issue1646/testsuite.sh
@@ -0,0 +1,9 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+analyze_failure test.vhdl
+
+clean
+
+echo "Test successful"