Fixed wrong unittest introduced in b36a887608
This commit is contained in:
parent
418a3d8399
commit
0439f25bbd
|
@ -5477,7 +5477,7 @@ private:
|
||||||
|
|
||||||
checkInitializationListUsage("class Fred {\n"
|
checkInitializationListUsage("class Fred {\n"
|
||||||
" std::string& s;\n" // Message is invalid for references, since their initialization in initializer list is required anyway and behaves different from assignment (#5004)
|
" std::string& s;\n" // Message is invalid for references, since their initialization in initializer list is required anyway and behaves different from assignment (#5004)
|
||||||
" Fred(const std::string& s) : s(s_) { s = \"foo\"; }\n"
|
" Fred(const std::string& s_) : s(s_) { s = \"foo\"; }\n"
|
||||||
"};");
|
"};");
|
||||||
ASSERT_EQUALS("", errout.str());
|
ASSERT_EQUALS("", errout.str());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue