Author: Armin Rigo <[email protected]>
Branch:
Changeset: r272:c33e50504bc8
Date: 2012-06-08 09:22 +0200
http://bitbucket.org/cffi/cffi/changeset/c33e50504bc8/
Log: The point of this is to detect broken signatures, which doesn't work
so far (the gcc warning is ignored).
diff --git a/testing/test_verify.py b/testing/test_verify.py
--- a/testing/test_verify.py
+++ b/testing/test_verify.py
@@ -12,3 +12,10 @@
# omission of math.h
py.test.raises(CompilationError, ffi.verify)
assert ffi.verify('#include <math.h>') is None
+ #
+ ffi = FFI()
+ ffi.cdef("float sin(double x);")
+ py.test.raises(CompilationError, ffi.verify, '#include <math.h>')
+ ffi = FFI()
+ ffi.cdef("double sin(float x);")
+ py.test.raises(CompilationError, ffi.verify, '#include <math.h>')
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit