aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testsuite/gna/issue1385/ex1.vhdl15
-rwxr-xr-xtestsuite/gna/issue1385/testsuite.sh10
2 files changed, 25 insertions, 0 deletions
diff --git a/testsuite/gna/issue1385/ex1.vhdl b/testsuite/gna/issue1385/ex1.vhdl
new file mode 100644
index 000000000..ff0d3c1b7
--- /dev/null
+++ b/testsuite/gna/issue1385/ex1.vhdl
@@ -0,0 +1,15 @@
+entity ex1 is
+ generic (
+ g_use_dsp : STRING := "YES"
+ );
+ attribute use_dsp : string;
+ attribute use_dsp of ex1: entity is g_use_dsp;
+end entity;
+
+architecture a of ex1 is
+begin
+ process begin
+ report "Hello world" severity note;
+ wait;
+ end process;
+end a;
diff --git a/testsuite/gna/issue1385/testsuite.sh b/testsuite/gna/issue1385/testsuite.sh
new file mode 100755
index 000000000..28082e6b1
--- /dev/null
+++ b/testsuite/gna/issue1385/testsuite.sh
@@ -0,0 +1,10 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+analyze_failure --std=93 ex1.vhdl
+analyze ex1.vhdl
+
+clean
+
+echo "Test successful"