diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-07-26 18:50:33 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-07-26 18:50:33 +0200 |
commit | fc5ed4cb9c73414eeb821aa5183954cee1866251 (patch) | |
tree | ef8e1942d6cb3f61ce3e62f81a711b2ab267f9e7 /testsuite/gna/bug0105/econcat1.vhdl | |
parent | 401341a2c5f2533ff68aae9dd4e65bb297c36679 (diff) | |
download | ghdl-fc5ed4cb9c73414eeb821aa5183954cee1866251.tar.gz ghdl-fc5ed4cb9c73414eeb821aa5183954cee1866251.tar.bz2 ghdl-fc5ed4cb9c73414eeb821aa5183954cee1866251.zip |
vhdl: add tests for concat.
Diffstat (limited to 'testsuite/gna/bug0105/econcat1.vhdl')
-rw-r--r-- | testsuite/gna/bug0105/econcat1.vhdl | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testsuite/gna/bug0105/econcat1.vhdl b/testsuite/gna/bug0105/econcat1.vhdl new file mode 100644 index 000000000..2cc80027d --- /dev/null +++ b/testsuite/gna/bug0105/econcat1.vhdl @@ -0,0 +1,20 @@ +entity econcat1 is +end econcat1; + +architecture behav of econcat1 is + constant c1 : string (1 to 5) := "hello"; + constant c2 : string (6 downto 1) := " world"; + constant r : string := c1 & c2; +begin + process + begin + case True is + when c1 & c2 = "hello world" => null; + when false => null; + end case; + + assert r'left = 1 severity failure; + assert r'right = 11 severity failure; + wait; + end process; +end; |