aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-07-01 06:42:18 +0200
committerTristan Gingold <tgingold@free.fr>2020-07-01 06:42:18 +0200
commitf62bfd56da7d7c3f7af3cdc27b7a2698f30cbf4f (patch)
treed055ce21dc3e3aeaadcaef0528a6910a1a7170b1 /testsuite/gna
parent66ed6fde81cc4774ac806369e21098252b97cce7 (diff)
downloadghdl-f62bfd56da7d7c3f7af3cdc27b7a2698f30cbf4f.tar.gz
ghdl-f62bfd56da7d7c3f7af3cdc27b7a2698f30cbf4f.tar.bz2
ghdl-f62bfd56da7d7c3f7af3cdc27b7a2698f30cbf4f.zip
testsuite/gna: add a test for #1385
Diffstat (limited to 'testsuite/gna')
-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"