diff options
author | Tristan Gingold <tgingold@free.fr> | 2017-01-19 04:23:32 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2017-01-19 04:23:32 +0100 |
commit | b329c6823455e151fa85c42393973809729a1f88 (patch) | |
tree | 788b7d252706fa42474c8511af23aef16f370df0 /testsuite/gna/issue258/length_tb1.vhdl | |
parent | 097cce34b39f2817d8f3d19b66f5b5aee1d41868 (diff) | |
download | ghdl-b329c6823455e151fa85c42393973809729a1f88.tar.gz ghdl-b329c6823455e151fa85c42393973809729a1f88.tar.bz2 ghdl-b329c6823455e151fa85c42393973809729a1f88.zip |
Add testcase for #258
Diffstat (limited to 'testsuite/gna/issue258/length_tb1.vhdl')
-rw-r--r-- | testsuite/gna/issue258/length_tb1.vhdl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/gna/issue258/length_tb1.vhdl b/testsuite/gna/issue258/length_tb1.vhdl new file mode 100644 index 000000000..af2a08a8f --- /dev/null +++ b/testsuite/gna/issue258/length_tb1.vhdl @@ -0,0 +1,16 @@ +entity length_tb1 is +end length_tb1; + +architecture tb of length_tb1 is +begin + process + variable s : string (1 to 4); + constant c : string := "hello"; + begin + + -- Behaves like 32-bit arithmetic with modular truncation + s := c; + + wait; -- forever + end process; +end tb; |