We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10109a5 commit 194a1beCopy full SHA for 194a1be
1 file changed
test/testconstructors.cpp
@@ -1986,6 +1986,23 @@ class TestConstructors : public TestFixture {
1986
"}");
1987
ASSERT_EQUALS("[test.cpp:11]: (warning) Member variable 'Foo::mMember' is not initialized in the constructor.\n", errout.str());
1988
1989
+ // constructor outside namespace with using, #4792
1990
+ check("namespace Output\n"
1991
+ "{\n"
1992
+ " class Foo\n"
1993
+ " {\n"
1994
+ " public:\n"
1995
+ " Foo();\n"
1996
+ " private:\n"
1997
+ " bool mMember;\n"
1998
+ " };\n"
1999
+ "}\n"
2000
+ "using namespace Output;"
2001
+ "Foo::Foo()\n"
2002
2003
+ "}");
2004
+ ASSERT_EQUALS("[test.cpp:11]: (warning) Member variable 'Foo::mMember' is not initialized in the constructor.\n", errout.str());
2005
+
2006
// constructor in separate namespace
2007
check("namespace Output\n"
2008
"{\n"
0 commit comments