You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ASSERT_EQUALS("[test.cpp:2:30]: (warning) Struct 'S' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor]\n", errout_str());
1107
+
}
1108
+
1109
+
voidcopyConstructor8() {
1110
+
checkCopyConstructor("struct S {\n"
1111
+
" S() : m_ptr(new int) {}\n"
1112
+
" ~S();\n"
1113
+
" std::unique_ptr<int> m_ptr;\n"
1114
+
"};\n");
1115
+
ASSERT_EQUALS("", errout_str());
1116
+
}
1117
+
1097
1118
voiddeletedMemberPointer() {
1098
1119
1099
1120
// delete ...
@@ -1158,6 +1179,15 @@ class TestClass : public TestFixture {
ASSERT_EQUALS("[test.cpp:2:30]: (warning) Struct 'S' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq]\n", errout_str());
0 commit comments