diff options
author | Armin Rigo <arigo@tunes.org> | 2012-11-30 13:52:07 -0800 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2012-11-30 13:52:07 -0800 |
commit | 544ab1ada8fb3f4557affe0e2ffbb6fa54f0c01f (patch) | |
tree | 4757921d86220c93bd472ad8feff4e4ef5d2a3df | |
parent | 40cb811025a6fc60305b8def35b55a85291b3f35 (diff) | |
download | cffi-544ab1ada8fb3f4557affe0e2ffbb6fa54f0c01f.tar.gz |
Another passing test.
-rw-r--r-- | testing/backend_tests.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testing/backend_tests.py b/testing/backend_tests.py index 65e4af2..494199f 100644 --- a/testing/backend_tests.py +++ b/testing/backend_tests.py @@ -1525,3 +1525,12 @@ class BackendTests: 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 |