Unit testing: Testing handling of Borland C++ properties

This commit is contained in:
Robert Reif 2010-04-07 19:19:28 +02:00 committed by Daniel Marjamäki
parent fcf532ccaf
commit b651acfc39
1 changed files with 10 additions and 0 deletions

View File

@ -1824,6 +1824,16 @@ private:
" Fred() { }\n" " Fred() { }\n"
"}\n"); "}\n");
ASSERT_EQUALS("", errout.str()); ASSERT_EQUALS("", errout.str());
checkUninitVar("class Fred\n"
"{\n"
"__published:\n"
" int * i_;\n"
" __property int * i = {read=i_, write=i_};\n"
"public:\n"
" Fred() { i_ = 0; }\n"
"}\n");
ASSERT_EQUALS("", errout.str());
} }
// Borland C++: No FP for properties // Borland C++: No FP for properties