diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/runner.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py index 7f772d07..0db58f4e 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -10638,6 +10638,18 @@ f.close() int sidey() { return 11; } ''', 'other says 11.') + # finalization of float variables should pass asm.js validation + test('floats', '', ''' + #include <stdio.h> + extern float sidey(); + int main() { + printf("other says %.2f.", sidey()+1); + return 0; + } + ''', ''' + float sidey() { return 11.5; } + ''', 'other says 12.50') + # memory initialization in both test('multiple memory inits', '', r''' #include <stdio.h> |