diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-04-18 08:04:13 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-04-18 08:04:13 +0200 |
commit | 304868c00803062cab662d308def9f091305f081 (patch) | |
tree | c841965b7aa307ed88feb6b25cb99a165c4d7363 /testsuite/gna/issue1240/issue2.vhdl | |
parent | 74f1fa0f335df82ce6e1909a1f0665b1a459d107 (diff) | |
download | ghdl-304868c00803062cab662d308def9f091305f081.tar.gz ghdl-304868c00803062cab662d308def9f091305f081.tar.bz2 ghdl-304868c00803062cab662d308def9f091305f081.zip |
testsuite/gna: add a test from #1240
Diffstat (limited to 'testsuite/gna/issue1240/issue2.vhdl')
-rw-r--r-- | testsuite/gna/issue1240/issue2.vhdl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/gna/issue1240/issue2.vhdl b/testsuite/gna/issue1240/issue2.vhdl new file mode 100644 index 000000000..7e9f9032a --- /dev/null +++ b/testsuite/gna/issue1240/issue2.vhdl @@ -0,0 +1,13 @@ +library ieee; +use ieee.std_logic_1164.all; +use ieee.numeric_std.all; + +entity issue2 is + port (foobar : out signed (3 downto 0)); +end issue2; + +architecture beh of issue2 is + subtype my_type is natural range 0 to 1; -- width = 1 +begin + foobar <= to_signed(my_type'(-15), foobar'length); +end architecture; |