Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r936:22a470d94ca0
Date: 2012-09-15 10:43 +0200
http://bitbucket.org/cffi/cffi/changeset/22a470d94ca0/

Log:    The test was bogus (did not compile on recent gcc's). Replace it
        with another test, which passes.

diff --git a/testing/backend_tests.py b/testing/backend_tests.py
--- a/testing/backend_tests.py
+++ b/testing/backend_tests.py
@@ -1427,14 +1427,14 @@
     def test_ordering_bug2(self):
         ffi = FFI(backend=self.Backend())
         ffi.cdef("""
+            struct bar_s;
+
             struct foo_s {
-                struct bar_s (*p)[3];
+                void (*foo)(struct bar_s[]);
             };
+
             struct bar_s {
                 struct foo_s foo;
             };
         """)
         q = ffi.new("struct foo_s *")
-        bar = ffi.new("struct bar_s *")
-        q.p[1] = bar
-        assert q.p[1].foo.p[1] == ffi.NULL
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to