[pypy-commit] cffi default: The point of this is to detect broken signatures, which doesn't

arigo noreply at buildbot.pypy.org
Fri Jun 8 09:27:23 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
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>')


More information about the pypy-commit mailing list