diff options
Diffstat (limited to 'testsuite/gna/ticket31/tb2.vhdl')
-rw-r--r-- | testsuite/gna/ticket31/tb2.vhdl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/gna/ticket31/tb2.vhdl b/testsuite/gna/ticket31/tb2.vhdl new file mode 100644 index 000000000..4b1922067 --- /dev/null +++ b/testsuite/gna/ticket31/tb2.vhdl @@ -0,0 +1,12 @@ +entity Tb2 is +end; + +architecture top of Tb2 is + function get_m15 return real is + begin + return -1.5; + end get_m15; + constant int_2 : INTEGER := natural(get_m15); +begin + assert FALSE report "17 - int_2 (natural(-1.5)): " & INTEGER'image(int_2) severity note; +end; |