From f62bfd56da7d7c3f7af3cdc27b7a2698f30cbf4f Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Wed, 1 Jul 2020 06:42:18 +0200 Subject: testsuite/gna: add a test for #1385 --- testsuite/gna/issue1385/ex1.vhdl | 15 +++++++++++++++ testsuite/gna/issue1385/testsuite.sh | 10 ++++++++++ 2 files changed, 25 insertions(+) create mode 100644 testsuite/gna/issue1385/ex1.vhdl create mode 100755 testsuite/gna/issue1385/testsuite.sh 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" -- cgit v1.2.3