From bd7df2697ac927ff200c1d3af4035cb8572d0dcf Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sun, 3 Oct 2021 21:03:56 +0200 Subject: testsuite/gna: add a test for #1386 --- testsuite/gna/issue1386/example.vhdl | 12 ++++++++++++ testsuite/gna/issue1386/testsuite.sh | 10 ++++++++++ 2 files changed, 22 insertions(+) create mode 100644 testsuite/gna/issue1386/example.vhdl create mode 100755 testsuite/gna/issue1386/testsuite.sh diff --git a/testsuite/gna/issue1386/example.vhdl b/testsuite/gna/issue1386/example.vhdl new file mode 100644 index 000000000..a95942e64 --- /dev/null +++ b/testsuite/gna/issue1386/example.vhdl @@ -0,0 +1,12 @@ +library ieee; +use ieee.std_logic_1164.all; + +entity example is + generic ( + PARAMETER : std_logic_vector); +end example; + +architecture behavioral of example is +begin + assert PARAMETER = x"9" severity failure; +end behavioral; diff --git a/testsuite/gna/issue1386/testsuite.sh b/testsuite/gna/issue1386/testsuite.sh new file mode 100755 index 000000000..517ef1b15 --- /dev/null +++ b/testsuite/gna/issue1386/testsuite.sh @@ -0,0 +1,10 @@ +#! /bin/sh + +. ../../testenv.sh + +analyze example.vhdl +elab_simulate example -gparameter=1001 + +clean + +echo "Test successful" -- cgit v1.2.3