We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed7a13a commit fef16fbCopy full SHA for fef16fb
1 file changed
test/testconstructors.cpp
@@ -760,10 +760,15 @@ class TestConstructors : public TestFixture {
760
}
761
762
void noConstructor16() {
763
- check("struct S {\n"
+ check("struct S {\n" // #14546
764
" int a = 0, b;\n"
765
"};\n");
766
ASSERT_EQUALS("[test.cpp:1:10]: (warning) Member variable 'S::b' is not initialized in the constructor. [uninitMemberVar]\n", errout_str());
767
+
768
+ check("struct S {\n"
769
+ " int a, b;\n"
770
+ "};\n");
771
+ ASSERT_EQUALS("", errout_str());
772
773
774
// ticket #4290 "False Positive: style (noConstructor): The class 'foo' does not have a constructor."
0 commit comments