fix string literals in test code

This commit is contained in:
Daniel Marjamäki 2021-08-07 15:50:47 +02:00
parent edd86c0b0a
commit f361106770
1 changed files with 3 additions and 3 deletions

View File

@ -6883,21 +6883,21 @@ private:
checkSelfInitialization("struct Foo : Bar {\n"
" int i;\n"
" Foo(int i)\n"
" : Bar(""), i(i) {}\n"
" : Bar(\"\"), i(i) {}\n"
"};");
ASSERT_EQUALS("", errout.str());
checkSelfInitialization("struct Foo : std::Bar {\n" // #6073
" int i;\n"
" Foo(int i)\n"
" : std::Bar(""), i(i) {}\n"
" : std::Bar(\"\"), i(i) {}\n"
"};");
ASSERT_EQUALS("", errout.str());
checkSelfInitialization("struct Foo : std::Bar {\n" // #6073
" int i;\n"
" Foo(int i)\n"
" : std::Bar(""), i{i} {}\n"
" : std::Bar(\"\"), i{i} {}\n"
"};");
ASSERT_EQUALS("", errout.str());
}