Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r1086:8c015d3bfeb2 Date: 2012-11-30 13:52 -0800 http://bitbucket.org/cffi/cffi/changeset/8c015d3bfeb2/
Log: Another passing test. diff --git a/testing/backend_tests.py b/testing/backend_tests.py --- a/testing/backend_tests.py +++ b/testing/backend_tests.py @@ -1525,3 +1525,12 @@ ffi2.include(ffi1) p = ffi2.cast("enum foo", 1) assert ffi2.string(p) == "FB" + + def test_include_typedef_2(self): + backend = self.Backend() + ffi1 = FFI(backend=backend) + ffi2 = FFI(backend=backend) + ffi1.cdef("typedef struct { int x; } *foo_p;") + ffi2.include(ffi1) + p = ffi2.new("foo_p", [142]) + assert p.x == 142 _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit