aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authormax99x <max99x@gmail.com>2011-06-27 21:23:46 +0300
committermax99x <max99x@gmail.com>2011-06-27 21:23:46 +0300
commita0ac176b22bbcf252dff23b89583bb077fafe371 (patch)
tree6678fb29fe1190b33aa0339d5d16c1e5163ea889 /tests/runner.py
parentbb908423d386f5f28e452b301daa3fb758707de1 (diff)
Fixed some strict mode problems; added test for -Infinity.
Diffstat (limited to 'tests/runner.py')
-rw-r--r--tests/runner.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 414f5308..f4d163ac 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -601,11 +601,11 @@ if 'benchmark' not in sys.argv:
#include <cmath>
int main()
{
- printf("*%.2f,%.2f,%f*\\n", M_PI, -M_PI, 1/0.0);
+ printf("*%.2f,%.2f,%f,%f*\\n", M_PI, -M_PI, 1/0.0, -1/0.0);
return 0;
}
'''
- self.do_test(src, '*3.14,-3.14,Infinity*')
+ self.do_test(src, '*3.14,-3.14,inf,-inf*')
def test_getgep(self):
# Generated code includes getelementptr (getelementptr, 0, 1), i.e., GEP as the first param to GEP