diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-07-01 06:42:18 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-07-01 06:42:18 +0200 |
commit | f62bfd56da7d7c3f7af3cdc27b7a2698f30cbf4f (patch) | |
tree | d055ce21dc3e3aeaadcaef0528a6910a1a7170b1 /testsuite/gna/issue1385 | |
parent | 66ed6fde81cc4774ac806369e21098252b97cce7 (diff) | |
download | ghdl-f62bfd56da7d7c3f7af3cdc27b7a2698f30cbf4f.tar.gz ghdl-f62bfd56da7d7c3f7af3cdc27b7a2698f30cbf4f.tar.bz2 ghdl-f62bfd56da7d7c3f7af3cdc27b7a2698f30cbf4f.zip |
testsuite/gna: add a test for #1385
Diffstat (limited to 'testsuite/gna/issue1385')
-rw-r--r-- | testsuite/gna/issue1385/ex1.vhdl | 15 | ||||
-rwxr-xr-x | testsuite/gna/issue1385/testsuite.sh | 10 |
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" |