diff options
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/gna/issue1810/repro.vhdl | 8 | ||||
-rwxr-xr-x | testsuite/gna/issue1810/testsuite.sh | 13 |
2 files changed, 21 insertions, 0 deletions
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" |