diff options
author | Armin Rigo <arigo@tunes.org> | 2016-09-03 11:36:21 +0200 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2016-09-03 11:36:21 +0200 |
commit | bbe653193b3d98a547e4bd0838b3ef6be80ca381 (patch) | |
tree | 2e148f5e3204af573af30dd42767476b3cd661f2 /testing | |
parent | 4ea29d4409f6016cc9139e93492f4d07bfb47786 (diff) | |
download | cffi-bbe653193b3d98a547e4bd0838b3ef6be80ca381.tar.gz |
Windows fun
Diffstat (limited to 'testing')
-rw-r--r-- | testing/cffi1/test_recompiler.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testing/cffi1/test_recompiler.py b/testing/cffi1/test_recompiler.py index 248c619..fd7967b 100644 --- a/testing/cffi1/test_recompiler.py +++ b/testing/cffi1/test_recompiler.py @@ -1974,9 +1974,9 @@ def test_function_returns_union(): 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 |