diff --git a/test/testconstructors.cpp b/test/testconstructors.cpp index 92501f159..3acc6914d 100644 --- a/test/testconstructors.cpp +++ b/test/testconstructors.cpp @@ -395,27 +395,27 @@ private: ASSERT_EQUALS("[test.cpp:3]: (warning) Member variable 'Fred::x' is not initialized in the constructor.\n", errout.str()); check("class Fred {\n" - "public:\n" - " Fred() = default;\n" - " int x;\n" - "};"); + "public:\n" + " Fred() = default;\n" + " int x;\n" + "};"); ASSERT_EQUALS("[test.cpp:3]: (warning) Member variable 'Fred::x' is not initialized in the constructor.\n", errout.str()); check("class Fred {\n" - "public:\n" - " Fred();\n" - " int x;\n" - "};\n" - "Fred::Fred()=default;"); + "public:\n" + " Fred();\n" + " int x;\n" + "};\n" + "Fred::Fred()=default;"); ASSERT_EQUALS("[test.cpp:3]: (warning) Member variable 'Fred::x' is not initialized in the constructor.\n", errout.str()); - check("class Fred {\n" - "public:\n" - " Fred() = default;\n" - "private:\n" - " int x = 0;\n" - "};"); - ASSERT_EQUALS("", errout.str()); + check("class Fred {\n" + "public:\n" + " Fred() = default;\n" + "private:\n" + " int x = 0;\n" + "};"); + ASSERT_EQUALS("", errout.str()); } void simple11() { // ticket #4536, #6214