diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-06-13 19:07:41 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-06-13 19:17:53 +0200 |
commit | 0316f95368837dc163173e7ca52f37ecd8d3591d (patch) | |
tree | 20b270a558a233f9e7b2986219da39b21f1fbeb4 /testsuite/gna/issue1354/mwe.vhdl | |
parent | d3c280b0b572db2e888d15df2fa45b6a1d622f55 (diff) | |
download | ghdl-0316f95368837dc163173e7ca52f37ecd8d3591d.tar.gz ghdl-0316f95368837dc163173e7ca52f37ecd8d3591d.tar.bz2 ghdl-0316f95368837dc163173e7ca52f37ecd8d3591d.zip |
testsuite/gna: add a test for #1354
Diffstat (limited to 'testsuite/gna/issue1354/mwe.vhdl')
-rw-r--r-- | testsuite/gna/issue1354/mwe.vhdl | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/testsuite/gna/issue1354/mwe.vhdl b/testsuite/gna/issue1354/mwe.vhdl new file mode 100644 index 000000000..1b4d89dfb --- /dev/null +++ b/testsuite/gna/issue1354/mwe.vhdl @@ -0,0 +1,19 @@ +library ieee; +context ieee.ieee_std_context; +use ieee.math_real.all; +use ieee.numeric_std_unsigned.all; + +entity mwe is +end entity; + +architecture a of mwe is +begin + process + variable v_real : real := 10.0e6; + begin + report "some=" & to_string(25000000); + report "some=" & to_string(25.0e6); + report "some=" & to_string(real(v_real)); + wait; + end process; +end; |