diff options
author | Tristan Gingold <tgingold@free.fr> | 2021-09-14 04:55:23 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2021-09-14 04:55:23 +0200 |
commit | 17f7e2236fddc3c9ff904fb3549634cf4df7fad2 (patch) | |
tree | 9def1de50cc4f4db46805b505d8636a74f8a2029 /testsuite/gna | |
parent | 3fd8d490604386f337f2e362a18c4a472ab6fbc1 (diff) | |
download | ghdl-17f7e2236fddc3c9ff904fb3549634cf4df7fad2.tar.gz ghdl-17f7e2236fddc3c9ff904fb3549634cf4df7fad2.tar.bz2 ghdl-17f7e2236fddc3c9ff904fb3549634cf4df7fad2.zip |
testsuite/gna: add a test for #1493
Diffstat (limited to 'testsuite/gna')
-rw-r--r-- | testsuite/gna/issue1493/test.vhdl | 19 | ||||
-rwxr-xr-x | testsuite/gna/issue1493/testsuite.sh | 11 |
2 files changed, 30 insertions, 0 deletions
diff --git a/testsuite/gna/issue1493/test.vhdl b/testsuite/gna/issue1493/test.vhdl new file mode 100644 index 000000000..d7d921c50 --- /dev/null +++ b/testsuite/gna/issue1493/test.vhdl @@ -0,0 +1,19 @@ +library ieee; +use ieee.std_logic_1164.all; +use ieee.numeric_std.all; + +entity test is +end test; + +architecture test of test is + + subtype word is unsigned (15 downto 0); + subtype byte is unsigned (7 downto 0); + + signal w: word; + signal b: byte; + signal mask: byte; + +begin + w <= (byte'range => (b and mask), others => '1'); +end test; diff --git a/testsuite/gna/issue1493/testsuite.sh b/testsuite/gna/issue1493/testsuite.sh new file mode 100755 index 000000000..1d84c0f57 --- /dev/null +++ b/testsuite/gna/issue1493/testsuite.sh @@ -0,0 +1,11 @@ +#! /bin/sh + +. ../../testenv.sh + +export GHDL_STD_FLAGS=--std=08 +analyze test.vhdl +elab_simulate test + +clean + +echo "Test successful" |