Commits

Armin Rigo committed 22a470d

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

Comments (0)

Files changed (1)

testing/backend_tests.py

     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