Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r621:8ac558826f7c Date: 2012-07-10 13:18 +0200 http://bitbucket.org/cffi/cffi/changeset/8ac558826f7c/
Log: Add a test diff --git a/c/test_c.py b/c/test_c.py --- a/c/test_c.py +++ b/c/test_c.py @@ -1445,6 +1445,11 @@ p = newp(BArray, 7) assert repr(p) == "<cdata 'int[]' owning 28 bytes>" assert sizeof(p) == 28 + # + BArray = new_array_type(new_pointer_type(BInt), 7) # int[7] + p = newp(BArray, None) + assert repr(p) == "<cdata 'int[7]' owning 28 bytes>" + assert sizeof(p) == 28 def test_cannot_dereference_void(): BVoidP = new_pointer_type(new_void_type()) _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit