From 51cc0a36b05cc0653d30df349a635f9af16c00cb Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Tue, 19 May 2015 06:36:28 +0200 Subject: testcase for ticket 69. --- testsuite/gna/ticket69/bug.vhdl | 15 +++++++++++++++ testsuite/gna/ticket69/bug2.vhdl | 15 +++++++++++++++ testsuite/gna/ticket69/repro.vhdl | 19 +++++++++++++++++++ testsuite/gna/ticket69/testsuite.sh | 12 ++++++++++++ 4 files changed, 61 insertions(+) create mode 100644 testsuite/gna/ticket69/bug.vhdl create mode 100644 testsuite/gna/ticket69/bug2.vhdl create mode 100644 testsuite/gna/ticket69/repro.vhdl create mode 100755 testsuite/gna/ticket69/testsuite.sh (limited to 'testsuite') diff --git a/testsuite/gna/ticket69/bug.vhdl b/testsuite/gna/ticket69/bug.vhdl new file mode 100644 index 000000000..de6b082d0 --- /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 000000000..51caf3a00 --- /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 000000000..daf9b472a --- /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 000000000..bf46cce77 --- /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" -- cgit v1.2.3