parent
10109a5ef7
commit
194a1be2c6
|
@ -1986,6 +1986,23 @@ private:
|
||||||
"}");
|
"}");
|
||||||
ASSERT_EQUALS("[test.cpp:11]: (warning) Member variable 'Foo::mMember' is not initialized in the constructor.\n", errout.str());
|
ASSERT_EQUALS("[test.cpp:11]: (warning) Member variable 'Foo::mMember' is not initialized in the constructor.\n", errout.str());
|
||||||
|
|
||||||
|
// constructor outside namespace with using, #4792
|
||||||
|
check("namespace Output\n"
|
||||||
|
"{\n"
|
||||||
|
" class Foo\n"
|
||||||
|
" {\n"
|
||||||
|
" public:\n"
|
||||||
|
" Foo();\n"
|
||||||
|
" private:\n"
|
||||||
|
" bool mMember;\n"
|
||||||
|
" };\n"
|
||||||
|
"}\n"
|
||||||
|
"using namespace Output;"
|
||||||
|
"Foo::Foo()\n"
|
||||||
|
"{\n"
|
||||||
|
"}");
|
||||||
|
ASSERT_EQUALS("[test.cpp:11]: (warning) Member variable 'Foo::mMember' is not initialized in the constructor.\n", errout.str());
|
||||||
|
|
||||||
// constructor in separate namespace
|
// constructor in separate namespace
|
||||||
check("namespace Output\n"
|
check("namespace Output\n"
|
||||||
"{\n"
|
"{\n"
|
||||||
|
|
Loading…
Reference in New Issue