Added unit test using C99 INFINITY. This test actually tests a float
conversion bug where converting to float imposed overflow checking which should not be there and causes this program to error out. This was seen originally in Javascript, but it turns out Python has the same bug. Lua does not have this bug. Other generators have not been tested. This test also tests the rename feature. The Javascript generator was not renaming the variable correctly.
This commit is contained in:
parent
1729fac360
commit
e01e337d75
2 changed files with 53 additions and 0 deletions
4
Examples/test-suite/javascript/infinity_runme.js
Normal file
4
Examples/test-suite/javascript/infinity_runme.js
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
|
||||
var my_infinity = infinity.INFINTY;
|
||||
var ret_val = infinity.use_infinity(my_infinity);
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue