diff options
author | Tristan Gingold | 2015-10-23 07:54:40 +0200 |
---|---|---|
committer | Tristan Gingold | 2015-10-23 07:54:40 +0200 |
commit | ab70415983fec433dd35aea6cc8b107699a5aff0 (patch) | |
tree | 097774b70472d912cc5ff2adb4a6314a2e31553c /testsuite | |
parent | 978cf0e8a286d2cec52d8f33a70040dce8610bdb (diff) | |
download | ghdl-ab70415983fec433dd35aea6cc8b107699a5aff0.tar.gz ghdl-ab70415983fec433dd35aea6cc8b107699a5aff0.tar.bz2 ghdl-ab70415983fec433dd35aea6cc8b107699a5aff0.zip |
Add reproducer for ticket97
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/gna/ticket97/bug.vhdl | 19 | ||||
-rwxr-xr-x | testsuite/gna/ticket97/testsuite.sh | 9 |
2 files changed, 28 insertions, 0 deletions
diff --git a/testsuite/gna/ticket97/bug.vhdl b/testsuite/gna/ticket97/bug.vhdl new file mode 100644 index 0000000..6364a66 --- /dev/null +++ b/testsuite/gna/ticket97/bug.vhdl @@ -0,0 +1,19 @@ +library ieee;
+use ieee.std_logic_1164.all;
+use ieee.numeric_std.all;
+entity foo is end entity;
+architecture arch of foo is
+begin
+ process is
+ procedure xyzzy( v : inout unsigned ) is
+ begin
+ v := v + 1;
+ end procedure;
+
+ variable x : std_ulogic_vector( 7 downto 0 );
+ begin
+ -- trying to do an inout conversion triggers the bug:
+ xyzzy( std_ulogic_vector( v ) => unsigned( x ) );
+ wait;
+ end process;
+end architecture;
diff --git a/testsuite/gna/ticket97/testsuite.sh b/testsuite/gna/ticket97/testsuite.sh new file mode 100755 index 0000000..06d43e0 --- /dev/null +++ b/testsuite/gna/ticket97/testsuite.sh @@ -0,0 +1,9 @@ +#! /bin/sh + +. ../../testenv.sh + +analyze bug.vhdl +elab_simulate foo +clean + +echo "Test successful" |