[pypy-commit] cffi default: Windows fun
arigo
pypy.commits at gmail.com
Sat Sep 3 05:36:29 EDT 2016
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r2750:d83bdf06b04f
Date: 2016-09-03 11:36 +0200
http://bitbucket.org/cffi/cffi/changeset/d83bdf06b04f/
Log: Windows fun
diff --git a/testing/cffi1/test_recompiler.py b/testing/cffi1/test_recompiler.py
--- a/testing/cffi1/test_recompiler.py
+++ b/testing/cffi1/test_recompiler.py
@@ -1974,9 +1974,9 @@
def test_function_returns_partial_struct():
ffi = FFI()
- ffi.cdef("struct a { int a; ...; }; struct a f1(int);")
+ ffi.cdef("struct aaa { int a; ...; }; struct aaa f1(int);")
lib = verify(ffi, "test_function_returns_partial_struct", """
- struct a { int b, a, c; };
- static struct a f1(int x) { struct a s = {0}; s.a = x; return s; }
+ struct aaa { int b, a, c; };
+ static struct aaa f1(int x) { struct aaa s = {0}; s.a = x; return s; }
""")
assert lib.f1(52).a == 52
More information about the pypy-commit
mailing list