From 923ee4b7def1e71e8fc7bf4e4a58b17c350651d1 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Wed, 12 Dec 2018 18:26:10 +0100 Subject: Add testcase for previous patch (and/or in PSL expressions). --- testsuite/gna/bug093/repro.vhdl | 10 ++++++++++ testsuite/gna/bug093/testsuite.sh | 11 +++++++++++ 2 files changed, 21 insertions(+) create mode 100644 testsuite/gna/bug093/repro.vhdl create mode 100755 testsuite/gna/bug093/testsuite.sh diff --git a/testsuite/gna/bug093/repro.vhdl b/testsuite/gna/bug093/repro.vhdl new file mode 100644 index 000000000..14ec21d2a --- /dev/null +++ b/testsuite/gna/bug093/repro.vhdl @@ -0,0 +1,10 @@ +entity repro is +end repro; + +architecture behav of repro is + constant a : boolean := True; + constant b : boolean := False; + constant c : boolean := False; +begin + assert (a and b) = c severity failure; +end behav; diff --git a/testsuite/gna/bug093/testsuite.sh b/testsuite/gna/bug093/testsuite.sh new file mode 100755 index 000000000..8d22a2073 --- /dev/null +++ b/testsuite/gna/bug093/testsuite.sh @@ -0,0 +1,11 @@ +#! /bin/sh + +. ../../testenv.sh + +export GHDL_STD_FLAGS=--std=08 +analyze repro.vhdl +elab_simulate repro + +clean + +echo "Test successful" -- cgit v1.2.3