From 85c36c399e87a0bb946a105c3975e2c028ebf2e9 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sat, 17 Dec 2022 09:24:23 +0100 Subject: testsuite/gna: add a test for #2269 --- testsuite/gna/issue2269/ent.vhdl | 15 +++++++++++++++ testsuite/gna/issue2269/testsuite.sh | 11 +++++++++++ 2 files changed, 26 insertions(+) create mode 100644 testsuite/gna/issue2269/ent.vhdl create mode 100755 testsuite/gna/issue2269/testsuite.sh (limited to 'testsuite') diff --git a/testsuite/gna/issue2269/ent.vhdl b/testsuite/gna/issue2269/ent.vhdl new file mode 100644 index 000000000..21fb46b1f --- /dev/null +++ b/testsuite/gna/issue2269/ent.vhdl @@ -0,0 +1,15 @@ +library ieee; + use ieee.numeric_bit.all; + +entity ent is +end entity; + +architecture a of ent is + constant Bit_c : bit := '0'; + constant BitVector_c : bit_vector(3 downto 0) := (others => Bit_c); +begin + process begin + report "String test: " & to_hstring(BitVector_c) severity note; + wait; + end process; +end; diff --git a/testsuite/gna/issue2269/testsuite.sh b/testsuite/gna/issue2269/testsuite.sh new file mode 100755 index 000000000..bda8f5d14 --- /dev/null +++ b/testsuite/gna/issue2269/testsuite.sh @@ -0,0 +1,11 @@ +#! /bin/sh + +. ../../testenv.sh + +export GHDL_STD_FLAGS=--std=08 +analyze ent.vhdl +elab_simulate ent + +clean + +echo "Test successful" -- cgit v1.2.3