1. Python CFFI
  2. Untitled project
  3. cffi

Commits

Armin Rigo  committed c33e505

The point of this is to detect broken signatures, which doesn't
work so far (the gcc warning is ignored).

  • Participants
  • Parent commits b6b7096
  • Branches default

Comments (0)

Files changed (1)

File testing/test_verify.py

View file
  • Ignore whitespace
     # 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>')