#NEWLINE# def test_c_code_reserved_words( ) : #NEWLINE# #INDENT# ( x , y , z ) = symbols ( 'if, typedef, while' ) #NEWLINE# expr = ( ( x + z ) * z ) #NEWLINE# routine = make_routine ( 'test' , expr ) #NEWLINE# code_gen = CCodeGen ( ) #NEWLINE# source = get_string ( code_gen . dump_c , [ routine ] ) #NEWLINE# expected = '#include "file.h"\n#include <math.h>\ndouble test(double if_, double typedef_, double while_) {\n   double test_result;\n   test_result = while_*(if_ + typedef_);\n   return test_result;\n}\n' #NEWLINE# assert ( source == expected )