diff options
Diffstat (limited to 'testsuite/gna/issue637/example.vhdl')
-rw-r--r-- | testsuite/gna/issue637/example.vhdl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/gna/issue637/example.vhdl b/testsuite/gna/issue637/example.vhdl new file mode 100644 index 000000000..d13664393 --- /dev/null +++ b/testsuite/gna/issue637/example.vhdl @@ -0,0 +1,16 @@ +entity example is +end entity; + +architecture tb of example is + type arrType is array (1 downto 0) of integer; + type arrTypePtr is access arrType; +begin + process (all) + variable ptr : arrTypePtr; + begin + ptr := new arrType'(10, 5); -- works + ptr.all(0) := 5; -- crash + ptr(0) := 5; --crash + end process; + +end architecture; |