Add a test case that currently fail

This commit is contained in:
Nicolas Le Cam 2008-12-07 01:47:24 +00:00
parent d77956f63f
commit 5a80bcc352
1 changed files with 14 additions and 0 deletions

View File

@ -68,6 +68,8 @@ private:
TEST_CASE( initvar_2constructors ); // BUG 2270353
TEST_CASE( initvar_private_constructor ); // BUG 2354171 - private constructor
// TODO TEST_CASE( initvar_destructor );
}
@ -278,6 +280,18 @@ private:
ASSERT_EQUALS( std::string(""), errout.str() );
}
void initvar_destructor()
{
check( "class Fred\n"
"{\n"
"private:\n"
" int var;\n"
"public:\n"
" Fred() : var(0) {}\n"
" ~Fred() {}\n"
"};\n" );
ASSERT_EQUALS( std::string(""), errout.str() );
}
};
REGISTER_TEST( TestConstructors )