[0.1.x] + test of constant enum

git-svn-id: https://pykd.svn.codeplex.com/svn@74823 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\EreTIk_cp 2012-03-09 16:30:07 +00:00 committed by Mikhail I. Izmestev
parent 6b11102280
commit 5aca2ab3e1
2 changed files with 4 additions and 0 deletions

View File

@ -25,6 +25,7 @@ class TypedVarTest( unittest.TestCase ):
def testConst(self):
self.assertEqual( True, target.module.typedVar( "g_constBoolValue" ) )
self.assertEqual( 0x5555, target.module.typedVar( "g_constNumValue" ) )
self.assertEqual( 3, target.module.typedVar( "g_constEnumThree" ) )
def testGetAddress( self ):
tv = target.module.typedVar( "structTest", target.module.g_structTest )

View File

@ -111,6 +111,8 @@ enum enumType {
THREE = 3
};
const enumType g_constEnumThree = THREE;
class classChild : public classBase {
public:
int m_childField;
@ -293,6 +295,7 @@ void FuncWithName0()
std::cout << ptrIntMatrix1;
std::cout << g_bigValue;
std::cout << g_classChild.m_enumField;
std::cout << g_constEnumThree;
std::cout << g_unNamedStruct.m_fieldNestedStruct;
std::cout << g_structNested.m_nestedFiled;
std::cout << g_unTypedPtrToFunction;