Unit Testing: Added test case for ticket 1700

This commit is contained in:
Daniel Marjamäki 2010-05-23 20:56:51 +02:00
parent 78255fdfc5
commit bf8ef94f0c
1 changed files with 20 additions and 0 deletions

View File

@ -1953,6 +1953,26 @@ private:
" i = 0;\n"
"}\n");
ASSERT_EQUALS("", errout.str());
// Ticket #1700
checkUninitVar("namespace n1\n"
"{\n"
"class Foo {"
"public:\n"
" Foo() : i(0) { };\n"
"private:\n"
" int i;\n"
"};\n"
"}\n"
"\n"
"namespace n2\n"
"{\n"
"class Foo {"
"public:\n"
" Foo() { };\n"
"};\n"
"}\n");
ASSERT_EQUALS("", errout.str());
}