Commits

Armin Rigo  committed 7c54e32

Kill this code, which is a duplicate of the previous test

  • Participants
  • Parent commits b47c74f

Comments (0)

Files changed (1)

File testing/test_verify.py

     assert p.c == 'Y'
     assert p.d == 'Y'
 
-def test_nested_anonymous_struct_exact():
-    ffi = FFI()
-    ffi.cdef("""
-        struct foo_s { struct { int a; char b; }; union { char c, d; }; };
-    """)
-    ffi.verify("""
-        struct foo_s { struct { int a; char b; }; union { char c, d; }; };
-    """)
-    p = ffi.new("struct foo_s *")
-    assert ffi.sizeof(p[0]) == 3 * ffi.sizeof("int")    # with alignment
-    p.a = 1234567
-    p.b = 'X'
-    p.c = 'Y'
-    assert p.a == 1234567
-    assert p.b == 'X'
-    assert p.c == 'Y'
-    assert p.d == 'Y'
-
 def test_nested_anonymous_struct_exact_error():
     ffi = FFI()
     ffi.cdef("""