aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/issue1665/test.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/synth/issue1665/test.vhdl')
-rw-r--r--testsuite/synth/issue1665/test.vhdl16
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/synth/issue1665/test.vhdl b/testsuite/synth/issue1665/test.vhdl
new file mode 100644
index 000000000..3591e23c7
--- /dev/null
+++ b/testsuite/synth/issue1665/test.vhdl
@@ -0,0 +1,16 @@
+library ieee;
+use ieee.fixed_pkg.all;
+use ieee.math_real.all;
+
+entity test is
+end entity test;
+
+architecture synthesis of test is
+ constant test1 : real := (2.0**6); -- works
+ constant test2 : real := (2.0**6.0); -- unhandled predefined IEEE operator "**"
+ constant test3 : real := arctan(2.0); -- unhandled call to ieee function "arctan"
+ signal a : sfixed(7 downto 0);
+begin
+a <= to_sfixed(test2, a);
+ assert test2 = 64.0 severity failure;
+end architecture synthesis;