#NEWLINE# def test_dotdotdot_length_of_array_field( ) : #NEWLINE# #INDENT# ffi = FFI ( ) #NEWLINE# ffi . cdef ( 'struct foo_s { int a[...]; int b[...]; };' ) #NEWLINE# verify ( ffi , 'test_dotdotdot_length_of_array_field' , 'struct foo_s { int a[42]; int b[11]; };' ) #NEWLINE# assert ( ffi . sizeof ( 'struct foo_s' ) == ( ( 42 + 11 ) * 4 ) ) #NEWLINE# p = ffi . new ( 'struct foo_s *' ) #NEWLINE# assert ( p . a [ 41 ] == ffi . b [ 10 ] == 0 ) #NEWLINE# py . test . raises ( IndexError , 'p.a[42]' ) #NEWLINE# py . test . raises ( IndexError , 'p.b[11]' )