Skip to content

Commit a200811

Browse files
committed
add test
1 parent e6e045f commit a200811

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

test/teststring.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,13 @@ class TestString : public TestFixture {
823823
" if (strequ(p, \"ALL\")) {}\n"
824824
"}\n");
825825
ASSERT_EQUALS("", errout_str());
826+
827+
check("void f(std::string_view);\n"
828+
"void f(bool);\n"
829+
"void g() {\n"
830+
" f(\"\"sv);\n"
831+
"}\n");
832+
ASSERT_EQUALS("", errout_str());
826833
}
827834

828835
void deadStrcmp() {

0 commit comments

Comments
 (0)