diff options
author | Tristan Gingold | 2014-01-13 02:40:01 +0100 |
---|---|---|
committer | Tristan Gingold | 2014-01-13 02:40:01 +0100 |
commit | 86bfd8ac497f4e4a753ddbd9d382b377d876dcbc (patch) | |
tree | 3035168b395c5f301b8c344c3cd1f881d4c6031c /testsuite/gna/bug20312/arr.vhdl | |
parent | eae904baf0e76f48c755e5ae91b1c0eff5729796 (diff) | |
download | ghdl-86bfd8ac497f4e4a753ddbd9d382b377d876dcbc.tar.gz ghdl-86bfd8ac497f4e4a753ddbd9d382b377d876dcbc.tar.bz2 ghdl-86bfd8ac497f4e4a753ddbd9d382b377d876dcbc.zip |
Fix bug20312: rewrite of complex types.
Fix crashes in sem_expr when string literals are used in range exprs.
Diffstat (limited to 'testsuite/gna/bug20312/arr.vhdl')
-rw-r--r-- | testsuite/gna/bug20312/arr.vhdl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/gna/bug20312/arr.vhdl b/testsuite/gna/bug20312/arr.vhdl new file mode 100644 index 0000000..cad470e --- /dev/null +++ b/testsuite/gna/bug20312/arr.vhdl @@ -0,0 +1,15 @@ +entity arr is + generic (width : natural := 4); +end arr; + +architecture behav of arr is + subtype line is bit_vector (1 to width); + type memory is array (0 to 7) of line; +begin + process is + variable l : line; + variable mem : memory; + begin + wait; + end process; +end behav; |