diff --git a/test/scripts/typeinfo.py b/test/scripts/typeinfo.py index d9be331..1dbce0b 100644 --- a/test/scripts/typeinfo.py +++ b/test/scripts/typeinfo.py @@ -266,9 +266,22 @@ class TypeInfoTest( unittest.TestCase ): functype = target.module.typedVar( "MethodPtr" ).type().deref() self.assertEqual(functype.name(), "Void(__thiscall FuncTestClass::)()") + functype = target.module.typedVar( "ArrayOfCdeclFuncPtr" ).type()[0].deref() + self.assertEqual(functype.name(), "Void(__cdecl)(Int4B, Float)") + + functype = target.module.typedVar( "ArrayOfMethodPtr" ).type()[0].deref() + self.assertEqual(functype.name(), "Void(__thiscall FuncTestClass::)()") + def testFunctionPtrName(self): funcptrtype = target.module.typedVar( "CdeclFuncPtr" ).type() self.assertEqual(funcptrtype.name(), "Void(__cdecl*)(Int4B, Float)") functype = target.module.typedVar( "MethodPtr" ).type().deref() self.assertEqual(functype.name(), "Void(__thiscall FuncTestClass::*)()") + + def testFunctionArrName(self): + funcptrtype = target.module.typedVar( "ArrayOfCdeclFuncPtr" ).type() + self.assertEqual(funcptrtype.name(), "Void(__cdecl*[3])(Int4B, Float)") + + functype = target.module.typedVar( "ArrayOfMethodPtr" ).type().deref() + self.assertEqual(functype.name(), "Void(__thiscall FuncTestClass::*[2])()")