File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -9066,8 +9066,8 @@ class TestValueFlow : public TestFixture {
90669066 ASSERT_EQUALS (false , testValueOfX (code, 5U , 0 ));
90679067 }
90689068
9069- void valueFlowBailoutIncompleteVar () { // #12526
9070- bailout (
9069+ void valueFlowBailoutIncompleteVar () {
9070+ bailout ( // #12526
90719071 " int f1() {\n "
90729072 " return VALUE_1;\n "
90739073 " }\n "
@@ -9080,6 +9080,13 @@ class TestValueFlow : public TestFixture {
90809080 " [test.cpp:2]: (debug) valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VALUE_1\n "
90819081 " [test.cpp:6]: (debug) valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VALUE_2\n " ,
90829082 errout_str ());
9083+
9084+ bailout (
9085+ " std::string_view f() {\n "
9086+ " return \" abc\" sv;\n "
9087+ " }\n "
9088+ );
9089+ ASSERT_EQUALS_WITHOUT_LINENUMBERS (" " , errout_str ());
90839090 }
90849091
90859092 void valueFlowBailoutNoreturn () { // #13718
You can’t perform that action at this time.
0 commit comments