diff options
author | Armin Rigo <arigo@tunes.org> | 2017-06-04 23:43:10 +0200 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2017-06-04 23:43:10 +0200 |
commit | 737f2cac34bc9387d9ca99e9ccfedbbe316afcf5 (patch) | |
tree | 4973f9cf8f7d08a3c3ce3974ff1ced259c7a7799 /testing | |
parent | 35f919ce2578760590de57555107f2f3d54879b1 (diff) | |
download | cffi-737f2cac34bc9387d9ca99e9ccfedbbe316afcf5.tar.gz |
including <complex.h> fails on some systems with C++
Diffstat (limited to 'testing')
-rw-r--r-- | testing/cffi1/test_recompiler.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testing/cffi1/test_recompiler.py b/testing/cffi1/test_recompiler.py index 46c3194..bae417f 100644 --- a/testing/cffi1/test_recompiler.py +++ b/testing/cffi1/test_recompiler.py @@ -2010,7 +2010,7 @@ def test_function_returns_float_complex(): lib = verify(ffi, "test_function_returns_float_complex", """ #include <complex.h> static float _Complex f1(float a, float b) { return a + I*2.0*b; } - """) + """, no_cpp=True) # <complex.h> fails on some systems with C++ result = lib.f1(1.25, 5.1) assert type(result) == complex assert result.real == 1.25 # exact @@ -2024,7 +2024,7 @@ def test_function_returns_double_complex(): lib = verify(ffi, "test_function_returns_double_complex", """ #include <complex.h> static double _Complex f1(double a, double b) { return a + I*2.0*b; } - """) + """, no_cpp=True) # <complex.h> fails on some systems with C++ result = lib.f1(1.25, 5.1) assert type(result) == complex assert result.real == 1.25 # exact @@ -2038,7 +2038,7 @@ def test_function_argument_float_complex(): lib = verify(ffi, "test_function_argument_float_complex", """ #include <complex.h> static float f1(float _Complex x) { return cabsf(x); } - """) + """, no_cpp=True) # <complex.h> fails on some systems with C++ x = complex(12.34, 56.78) result = lib.f1(x) assert abs(result - abs(x)) < 1e-5 @@ -2051,7 +2051,7 @@ def test_function_argument_double_complex(): lib = verify(ffi, "test_function_argument_double_complex", """ #include <complex.h> static double f1(double _Complex x) { return cabs(x); } - """) + """, no_cpp=True) # <complex.h> fails on some systems with C++ x = complex(12.34, 56.78) result = lib.f1(x) assert abs(result - abs(x)) < 1e-11 |