diff options
-rw-r--r-- | testsuite/gna/ticket69/bug.vhdl | 15 | ||||
-rw-r--r-- | testsuite/gna/ticket69/bug2.vhdl | 15 | ||||
-rw-r--r-- | testsuite/gna/ticket69/repro.vhdl | 19 | ||||
-rwxr-xr-x | testsuite/gna/ticket69/testsuite.sh | 12 |
4 files changed, 61 insertions, 0 deletions
diff --git a/testsuite/gna/ticket69/bug.vhdl b/testsuite/gna/ticket69/bug.vhdl new file mode 100644 index 0000000..de6b082 --- /dev/null +++ b/testsuite/gna/ticket69/bug.vhdl @@ -0,0 +1,15 @@ +library ieee; +use ieee.numeric_std.all; + +entity ent is +end entity; + +architecture a of ent is +begin + main : process + variable a,b : unsigned(0 downto 0); + begin + assert a = b; -- Works + assert ieee.numeric_std."="(a, b); + end process; +end architecture; diff --git a/testsuite/gna/ticket69/bug2.vhdl b/testsuite/gna/ticket69/bug2.vhdl new file mode 100644 index 0000000..51caf3a --- /dev/null +++ b/testsuite/gna/ticket69/bug2.vhdl @@ -0,0 +1,15 @@ +library ieee; +use ieee.numeric_std.all; + +entity ent is +end entity; + +architecture a of ent is +begin + main : process + variable a,b : unsigned(0 downto 0) := "1"; + begin + assert a = b; -- Works + assert ieee.numeric_std."="(a, b); + end process; +end architecture; diff --git a/testsuite/gna/ticket69/repro.vhdl b/testsuite/gna/ticket69/repro.vhdl new file mode 100644 index 0000000..daf9b47 --- /dev/null +++ b/testsuite/gna/ticket69/repro.vhdl @@ -0,0 +1,19 @@ +library ieee; +use ieee.numeric_std.all; + +entity ent is +end entity; + +library ieee; +use ieee.std_logic_1164.all; + +architecture a of ent is +begin + main : process + variable a,b : unsigned(0 downto 0) := "1"; + begin + assert a = b; -- Works + assert ieee.numeric_std."="(a, b); + wait; + end process; +end architecture; diff --git a/testsuite/gna/ticket69/testsuite.sh b/testsuite/gna/ticket69/testsuite.sh new file mode 100755 index 0000000..bf46cce --- /dev/null +++ b/testsuite/gna/ticket69/testsuite.sh @@ -0,0 +1,12 @@ +#! /bin/sh + +. ../../testenv.sh + +analyze bug.vhdl +analyze repro.vhdl +elab_simulate ent + +analyze_failure bug2.vhdl +clean + +echo "Test successful" |