Here is gen-typetests.py which can be used to generate a C type test program and the associated java tester. When invoked as 'python gen-typetests.py -type' it will generate: funit-type-entry.c and TestTypeEntryType.java. The tests this generates all pass with the patches outlined below. Checking values via 'python gen-typetests.py -value' is in progress. Suggestions are encouraged, including a good way to graft this onto the make machinery. TypeEntry.java: -Add getUnionType -case DwTag.UNION_TYPE_ invoke getUnionType -case DwTag.STRUCTURE_TYPE_ remove classType.setTypedefFIXME -case DwTag.VOLATILE_TYPE_: new -case DwTag.CONST_TYPE_: new ArrayType.java: -Add public void toPrint(String s, PrintWriter writer) This is to support the odd C syntax for pointer to array where the pointer designation is embedded: int (* x) [2]. Using 1.5's String.format would be nicer PointerType.java: -Add public void toPrint(String s, PrintWriter writer) Similar to above to handle pointer to array TypeDecorator.java -special case PointerType so 'const int * x' and 'int * const x' are handled properly CompositeType.java: -Add public void toPrint(int indentation, PrintWriter writer) -if member is a CompositeType invoke toPrint with indentation+2 -special case pointer to array case