1 // Compile with "cl /c /Zi /GR- FilterTest.cpp" 2 // Link with "link FilterTest.obj /debug /nodefaultlib /entry:main" 3 4 class FilterTestClass { 5 public: 6 typedef int NestedTypedef; 7 enum NestedEnum { 8 NestedEnumValue1 9 }; 10 MemberFunc()11 void MemberFunc() {} 12 foo() const13 int foo() const { return IntMemberVar; } 14 15 private: 16 int IntMemberVar; 17 double DoubleMemberVar; 18 }; 19 20 int IntGlobalVar; 21 double DoubleGlobalVar; 22 typedef int GlobalTypedef; 23 char OneByte; 24 char TwoBytes[2]; 25 char ThreeBytes[3]; 26 27 enum GlobalEnum { 28 GlobalEnumVal1 29 } GlobalEnumVar; 30 CFunc()31int CFunc() { 32 return (int)OneByte * 2; 33 } BFunc()34int BFunc() { 35 return 42; 36 } AFunc()37int AFunc() { 38 static FilterTestClass FC; 39 40 return (CFunc() + BFunc()) * IntGlobalVar + FC.foo(); 41 } 42 main(int argc,char ** argv)43int main(int argc, char **argv) { 44 FilterTestClass TestClass; 45 GlobalTypedef v1; 46 return 0; 47 } 48