diff options
author | Tristan Gingold <tgingold@free.fr> | 2017-02-24 05:04:52 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2017-02-24 05:04:52 +0100 |
commit | ad5973aed8524096ae2b0c51d4d839d9799cd791 (patch) | |
tree | 7930f57f9f8602266937d9818ea0a034fbcf098c /testsuite/gna/issue295/tb.vhdl | |
parent | 8f65c11d87a7dc8993d817f2db0beac9395af0a6 (diff) | |
download | ghdl-ad5973aed8524096ae2b0c51d4d839d9799cd791.tar.gz ghdl-ad5973aed8524096ae2b0c51d4d839d9799cd791.tar.bz2 ghdl-ad5973aed8524096ae2b0c51d4d839d9799cd791.zip |
Add testcase for #295
Diffstat (limited to 'testsuite/gna/issue295/tb.vhdl')
-rw-r--r-- | testsuite/gna/issue295/tb.vhdl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/testsuite/gna/issue295/tb.vhdl b/testsuite/gna/issue295/tb.vhdl new file mode 100644 index 000000000..fc66704f3 --- /dev/null +++ b/testsuite/gna/issue295/tb.vhdl @@ -0,0 +1,21 @@ +library vunit_lib; +context vunit_lib.vunit_context; + +entity tb_test4 is + generic ( + runner_cfg : string); +end tb_test4; + +architecture tb of tb_test4 is +begin + test_runner : process + begin + test_runner_setup(runner, runner_cfg); + + assert 2.0**(-1023) > 0.0 report "This passes"; + assert 2.0**(-1024) > 0.0 report "This fails"; + + test_runner_cleanup(runner); + wait; + end process test_runner; +end; |