aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/gna')
-rw-r--r--testsuite/gna/issue613/t3.vhdl7
-rwxr-xr-xtestsuite/gna/issue613/testsuite.sh3
2 files changed, 9 insertions, 1 deletions
diff --git a/testsuite/gna/issue613/t3.vhdl b/testsuite/gna/issue613/t3.vhdl
new file mode 100644
index 000000000..51105e379
--- /dev/null
+++ b/testsuite/gna/issue613/t3.vhdl
@@ -0,0 +1,7 @@
+entity t3 is
+end;
+
+architecture behav of t3 is
+ constant t1 : time := ps;
+begin
+end behav;
diff --git a/testsuite/gna/issue613/testsuite.sh b/testsuite/gna/issue613/testsuite.sh
index 029a98433..90e38214a 100755
--- a/testsuite/gna/issue613/testsuite.sh
+++ b/testsuite/gna/issue613/testsuite.sh
@@ -7,7 +7,8 @@ if ! $GHDL --help -a | grep -q time-resolution; then
else
# Below the resolution
analyze_failure --time-resolution=sec ent.vhdl
-
+ analyze_failure --time-resolution=ns t3.vhdl
+
# Zero physical literals are always allowed.
analyze --time-resolution=ms t1.vhdl
analyze --time-resolution=ms t2.vhdl