From afae1a4ab13485d3e5d5624ca9231bc5da0ff867 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Wed, 30 Jun 2021 06:58:42 +0200 Subject: testsuite/gna: add a test for #1810 --- testsuite/gna/issue1810/repro.vhdl | 8 ++++++++ testsuite/gna/issue1810/testsuite.sh | 13 +++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 testsuite/gna/issue1810/repro.vhdl create mode 100755 testsuite/gna/issue1810/testsuite.sh (limited to 'testsuite') diff --git a/testsuite/gna/issue1810/repro.vhdl b/testsuite/gna/issue1810/repro.vhdl new file mode 100644 index 000000000..9fa6e8412 --- /dev/null +++ b/testsuite/gna/issue1810/repro.vhdl @@ -0,0 +1,8 @@ +entity repro is +end; + +architecture behav of repro is + constant t1: time := 10 ns mod 3 ns; +begin + assert t1 = 1 ns severity failure; +end; diff --git a/testsuite/gna/issue1810/testsuite.sh b/testsuite/gna/issue1810/testsuite.sh new file mode 100755 index 000000000..e2f34ef98 --- /dev/null +++ b/testsuite/gna/issue1810/testsuite.sh @@ -0,0 +1,13 @@ +#! /bin/sh + +. ../../testenv.sh + +analyze_failure repro.vhdl + +export GHDL_STD_FLAGS=--std=08 +analyze repro.vhdl +elab_simulate repro + +clean + +echo "Test successful" -- cgit v1.2.3