#NEWLINE# def test_global_var_array_2( ) : #NEWLINE# #INDENT# ffi = FFI ( ) #NEWLINE# ffi . cdef ( 'int a[...][...];' ) #NEWLINE# lib = verify ( ffi , 'test_global_var_array_2' , 'int a[10][8];' ) #NEWLINE# lib . a [ 9 ] [ 7 ] = 123456 #NEWLINE# assert ( lib . a [ 9 ] [ 7 ] == 123456 ) #NEWLINE# py . test . raises ( IndexError , 'lib.a[0][8]' ) #NEWLINE# py . test . raises ( IndexError , 'lib.a[10][0]' ) #NEWLINE# assert ( ffi . typeof ( lib . a ) == ffi . typeof ( 'int[10][8]' ) ) #NEWLINE# assert ( ffi . typeof ( lib . a [ 0 ] ) == ffi . typeof ( 'int[8]' ) )