#NEWLINE# def test_constant_of_value_unknown_to_the_compiler( ) : #NEWLINE# #INDENT# extra_c_source = udir . join ( 'extra_test_constant_of_value_unknown_to_the_compiler.c' ) #NEWLINE# extra_c_source . write ( 'const int external_foo = 42;\n' ) #NEWLINE# ffi = FFI ( ) #NEWLINE# ffi . cdef ( 'const int external_foo;' ) #NEWLINE# lib = verify ( ffi , 'test_constant_of_value_unknown_to_the_compiler' , '\n        extern const int external_foo;\n    ' , sources = [ str ( extra_c_source ) ] ) #NEWLINE# assert ( lib . external_foo == 42 )