diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-05-28 06:55:27 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-05-28 06:55:27 +0200 |
commit | 519b5820ff6364bbfe87d8ff898cd209e7209c47 (patch) | |
tree | bbfa4750b1a3916c0b0a91566b6f48c623d36a46 /testsuite/gna | |
parent | 3e817e1828a919a95d8e2efc9d73a38944d12778 (diff) | |
download | ghdl-519b5820ff6364bbfe87d8ff898cd209e7209c47.tar.gz ghdl-519b5820ff6364bbfe87d8ff898cd209e7209c47.tar.bz2 ghdl-519b5820ff6364bbfe87d8ff898cd209e7209c47.zip |
vhdl: add testcase for previous patch
Diffstat (limited to 'testsuite/gna')
-rw-r--r-- | testsuite/gna/issue613/t3.vhdl | 7 | ||||
-rwxr-xr-x | testsuite/gna/issue613/testsuite.sh | 3 |
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 |