Commits

Armin Rigo  committed 4adde31

A passing test.

  • Participants
  • Parent commits 760ec46

Comments (0)

Files changed (1)

File testing/test_verify.py

     ctype = ffi.typeof(lib.foo)
     assert len(ctype.args) == 2
     assert ctype.result == ffi.typeof("int")
+
+def test_call_with_voidstar_arg():
+    ffi = FFI()
+    ffi.cdef("int f(void *);")
+    lib = ffi.verify("int f(void *x) { return ((char*)x)[0]; }")
+    assert lib.f(b"foobar") == ord(b"f")